1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-07-01 00:00:23 +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

@@ -38,6 +38,7 @@ func (m *Me) AddPeer(cfg *PeerConfig) (l *Link) {
l = &Link{
pubk: cfg.PubicKey,
peerip: net.ParseIP(cfg.PeerIP),
rawep: cfg.EndPoint,
allowtrans: cfg.AllowTrans,
usezstd: cfg.UseZstd,
me: m,