🎨调整定时任务执行时间,以及启动时间
This commit is contained in:
@@ -67,7 +67,7 @@ func (c networkClient) ClientOfflineNotify() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 如果存在,判断离线时间
|
// 如果存在,判断离线时间
|
||||||
if time.Since(peer.LastHandshakeTime).Minutes() < 3 {
|
if time.Since(peer.LastHandshakeTime).Minutes() >= 3 {
|
||||||
var ipAllocation string
|
var ipAllocation string
|
||||||
for _, iaip := range peer.AllowedIPs {
|
for _, iaip := range peer.AllowedIPs {
|
||||||
ipAllocation += iaip.String() + ","
|
ipAllocation += iaip.String() + ","
|
||||||
|
Reference in New Issue
Block a user