This commit is contained in:
parent
f09d0d2994
commit
93911536d9
@ -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() + ","
|
||||||
|
Loading…
Reference in New Issue
Block a user