fix rete limit bug when add client first

This commit is contained in:
cnlh 2020-03-16 11:00:09 +08:00
parent 77ed98d407
commit 9ff29c810c

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