fix speed limiter not clear

This commit is contained in:
yuzuki999 committed 2022-09-06 08:28:57 +08:00
1 parent e92a872738
commit cef8ff1b70
4 files changed
+34 -29

No files matched your search

+1 -1
View File
@@ -407,7 +407,7 @@ func (c *Node) onlineIpReport() (err error) {
}
log.Printf("[Node: %d] Report %d online ip", c.nodeInfo.NodeId, len(onlineIp))
if rsp.StatusCode() == 200 {
onlineIp = []dispatcher.UserIp{}
onlineIp = []dispatcher.UserIpList{}
err := json.Unmarshal(rsp.Body(), &onlineIp)
if err != nil {
log.Print(err)