🎨调整定时任务执行时间,以及启动时间
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-12-05 11:52:17 +08:00
parent f09d0d2994
commit 93911536d9

View File

@ -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() + ","