🐛修复定时任务bug
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward
2024-12-05 10:43:40 +08:00
parent 8884d945aa
commit accb060e27
2 changed files with 10 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ func (c networkClient) ClientOfflineNotify() error {
}
// 如果存在,判断离线时间
if time.Since(peer.LastHandshakeTime) < 3 {
if time.Since(peer.LastHandshakeTime).Minutes() < 3 {
var ipAllocation string
for _, iaip := range peer.AllowedIPs {
ipAllocation += iaip.String() + ","