1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-07-01 16:10:24 +08:00

fix(tcp): re-connect after long waiting

This commit is contained in:
源文雨
2024-07-16 23:38:53 +09:00
parent 1a1327b6e8
commit 1bbec7f8f9
4 changed files with 19 additions and 15 deletions

View File

@@ -30,6 +30,8 @@ type Link struct {
peerip net.IP
// peer 的公网 endpoint
endpoint p2p.EndPoint
// peer 在设置的原始值
rawep string
// 本机允许接收/发送的 ip 网段
allowedips []*net.IPNet
// 连接所用对称加密密钥集