mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-08 08:48:35 +00:00
wgengine/magicsock: fix outdated heartbeat comment (#16023)
heartbeatInterval is currently 3s. Updates #cleanup Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
parent
118206ab79
commit
70b6e8ca98
@ -820,7 +820,7 @@ func (de *endpoint) heartbeat() {
|
|||||||
|
|
||||||
udpAddr, _, _ := de.addrForSendLocked(now)
|
udpAddr, _, _ := de.addrForSendLocked(now)
|
||||||
if udpAddr.IsValid() {
|
if udpAddr.IsValid() {
|
||||||
// We have a preferred path. Ping that every 2 seconds.
|
// We have a preferred path. Ping that every 'heartbeatInterval'.
|
||||||
de.startDiscoPingLocked(udpAddr, now, pingHeartbeat, 0, nil)
|
de.startDiscoPingLocked(udpAddr, now, pingHeartbeat, 0, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user