diff --git a/intra/ipn/auto.go b/intra/ipn/auto.go index a95c5157..128df55c 100644 --- a/intra/ipn/auto.go +++ b/intra/ipn/auto.go @@ -497,5 +497,9 @@ func maybeKeepAlive(c net.Conn) { if settings.GetDialerOpts().LowerKeepAlive { // adjust TCP keepalive config if c is a TCPConn core.SetKeepAliveConfigSockOpt(c) + } else { + if tcpConn, ok := c.(*net.TCPConn); ok { + tcpConn.SetKeepAlive(false) + } } }