Skip to content

Commit

Permalink
Fix issue where device would not get a node association if they were new
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed May 18, 2024
1 parent 961b999 commit 8758d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/router/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] != "<nil>" {
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
Expand Down

0 comments on commit 8758d1e

Please sign in to comment.