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