probes to the lh are not generally useful as recv_error should catch (#408)

This commit is contained in:
Ryan Huber 2023-03-29 13:09:36 -07:00 committed by GitHub
parent 3e5c7e6860
commit e28336c5db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -216,6 +216,13 @@ func (n *connectionManager) HandleMonitorTick(now time.Time, p, nb, out []byte)
continue
}
if n.intf.lightHouse.IsLighthouseIP(hostinfo.vpnIp) {
// Don't probe lighthouses since recv_error should naturally catch this.
n.ClearLocalIndex(localIndex)
n.ClearPendingDeletion(localIndex)
continue
}
hostinfo.logger(n.l).
WithField("tunnelCheck", m{"state": "testing", "method": "active"}).
Debug("Tunnel status")