mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 04:53:50 +00:00
fix rete limit bug when add client first
This commit is contained in:
parent
77ed98d407
commit
9ff29c810c
@ -61,10 +61,6 @@ func (s *ClientController) Add() {
|
||||
FlowLimit: int64(s.GetIntNoErr("flow_limit")),
|
||||
},
|
||||
}
|
||||
if t.RateLimit > 0 {
|
||||
t.Rate = rate.NewRate(int64(t.RateLimit * 1024))
|
||||
t.Rate.Start()
|
||||
}
|
||||
if err := file.GetDb().NewClient(t); err != nil {
|
||||
s.AjaxErr(err.Error())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user