From 7df928aeae8298ed40e02f114bba9b6651cb856a Mon Sep 17 00:00:00 2001 From: Nate Brown Date: Tue, 19 Dec 2023 10:44:22 -0600 Subject: [PATCH] Add an early exit for lighthouse ips --- lighthouse.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lighthouse.go b/lighthouse.go index a86963b49..aa54c4bc5 100644 --- a/lighthouse.go +++ b/lighthouse.go @@ -463,9 +463,11 @@ func (lh *LightHouse) Query(ip iputil.VpnIp) *RemoteList { // QueryServer is asynchronous so no reply should be expected func (lh *LightHouse) QueryServer(ip iputil.VpnIp) { - if lh.amLighthouse { + // Don't put lighthouse ips in the query channel because we can't query lighthouses about lighthouses + if lh.amLighthouse || lh.IsLighthouseIP(ip) { return } + lh.queryChan <- ip }