fix rete limit bug when add client first

pull/478/head
cnlh 2020-03-16 11:00:09 +08:00
parent 77ed98d407
commit 9ff29c810c
1 changed files with 0 additions and 4 deletions

View File

@ -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())
}