1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-12 04:43:22 +08:00

adjust keep alive pos

This commit is contained in:
fumiama
2022-01-01 15:14:17 +08:00
parent 331e57d221
commit 08d5d74fb5
3 changed files with 11 additions and 16 deletions

View File

@@ -59,6 +59,7 @@ func (m *Me) AddPeer(peerip string, pubicKey *[32]byte, endPoint string, allowed
l.me.connections[peerip] = l
l.me.connmapmu.Unlock()
logrus.Infoln("[peer] add peer:", peerip, "allow:", allowedIPs)
go l.keepAlive()
return
}