Răsfoiți Sursa

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

Ryan Huber 2 ani în urmă
părinte
comite
e28336c5db
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      connection_manager.go

+ 7 - 0
connection_manager.go

@@ -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")