From 8758d1e2627a51cb6ce6a88d0014184321eb5ab1 Mon Sep 17 00:00:00 2001 From: NHAS Date: Sun, 19 May 2024 11:38:35 +1200 Subject: [PATCH] Fix issue where device would not get a node association if they were new --- internal/router/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/router/init.go b/internal/router/init.go index 30088ff..28c8474 100644 --- a/internal/router/init.go +++ b/internal/router/init.go @@ -90,7 +90,7 @@ func Setup(errorChan chan<- error, iptables bool) (err error) { } // If the peer address has changed, but is not empty (empty indicates the peer has changed it node association away from this node) - if ourPeerAddresses[device.Address] != p.Endpoint.String() && ourPeerAddresses[device.Address] != "" { + if ourPeerAddresses[device.Address] != p.Endpoint.String() && p.Endpoint != nil { ourPeerAddresses[device.Address] = p.Endpoint.String() // If we register an endpoint change on our real world device, and the Endpoint is not the same as what the cluster knows