mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 16:47:11 +08:00
fea: remove qos download limit (#45)
* fea: remove qos download limit * fix: crash when qos config missing * fea: update inSpeed unit to Mbit
This commit is contained in:
@@ -54,7 +54,7 @@ func (h QosApi) Add(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
if qos != nil {
|
||||
if err := worker.Qoser().AddQosUser(qos.Name, qos.InSpeed, qos.OutSpeed); err != nil {
|
||||
if err := worker.Qoser().AddQosUser(qos.Name, qos.InSpeed); err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user