mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 18:08:14 -05:00
fix ip report bug
This commit is contained in:
parent
3c7c7e047d
commit
f41ef6b0fa
@ -113,13 +113,13 @@ func (c *Node) Start() error {
|
||||
Interval: time.Duration(c.config.IpRecorderConfig.Periodic) * time.Second,
|
||||
Execute: c.onlineIpReport,
|
||||
}
|
||||
}
|
||||
log.Printf("[%s: %d] Start report online ip", c.nodeInfo.NodeType, c.nodeInfo.NodeId)
|
||||
// delay to start onlineIpReport
|
||||
go func() {
|
||||
time.Sleep(time.Duration(c.config.UpdatePeriodic) * time.Second)
|
||||
_ = c.onlineIpReportPeriodic.Start()
|
||||
}()
|
||||
log.Printf("[%s: %d] Start report online ip", c.nodeInfo.NodeType, c.nodeInfo.NodeId)
|
||||
}
|
||||
// delay to start onlineIpReport
|
||||
runtime.GC()
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user