diff options
author | Himbeer <himbeer@disroot.org> | 2025-03-28 21:22:41 +0100 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2025-03-28 21:22:41 +0100 |
commit | 25a3f019af5f1e660073763d7fef5b9a37fbd62b (patch) | |
tree | 90d672e61b2f59d8e461748cbd688aac0f8432e4 | |
parent | 7b34834724f753b07e72a54f60f364f135654871 (diff) |
-rw-r--r-- | rudp/conn.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rudp/conn.go b/rudp/conn.go index 11ffe0d..4d195a8 100644 --- a/rudp/conn.go +++ b/rudp/conn.go @@ -150,6 +150,9 @@ func newConn(uc udpConn, id, remoteID PeerID) *Conn { c.newAckBuf() go c.recvUDPPkts() + if remoteID != PeerIDNil { + go c.sendPings(c.ping.C) + } return c } |