Преглед на файлове

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

Ryan Huber преди 2 години
родител
ревизия
e28336c5db
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  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")