We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8afca6c commit 031f1c0Copy full SHA for 031f1c0
tailnet/conn.go
@@ -302,6 +302,8 @@ func (c *Conn) UpdateNodes(nodes []*Node) error {
302
for _, peer := range c.netMap.Peers {
303
if peerStatus, ok := status.Peer[peer.Key]; ok {
304
// Clear out inactive connections!
305
+ // If the connection hasn't been written to in a while, we manually
306
+ // send a ping to ensure it's still alive.
307
if !peerStatus.Active {
308
continue
309
}
@@ -318,6 +320,7 @@ func (c *Conn) UpdateNodes(nodes []*Node) error {
318
320
Endpoints: node.Endpoints,
319
321
DERP: fmt.Sprintf("%s:%d", tailcfg.DerpMagicIP, node.PreferredDERP),
322
Hostinfo: hostinfo.New().View(),
323
+ KeepAlive: true,
324
325
326
c.netMap.Peers = make([]*tailcfg.Node, 0, len(peerMap))
0 commit comments