From bb72671c77c6f69a2da5e8b053c2913c56ec9f92 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Mon, 27 Nov 2023 18:24:42 +0100 Subject: [PATCH] Update hostinfo if different Signed-off-by: Kristoffer Dalby --- hscontrol/poll.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscontrol/poll.go b/hscontrol/poll.go index dfbfefe3ba5..0be9179e1b4 100644 --- a/hscontrol/poll.go +++ b/hscontrol/poll.go @@ -97,7 +97,7 @@ func (h *Headscale) handlePoll( // the route change. // If the hostinfo has changed, but not the routes, just update // hostinfo and let the function continue. - if node.Hostinfo.Equal(mapRequest.Hostinfo) { + if !node.Hostinfo.Equal(mapRequest.Hostinfo) { oldRoutes := node.Hostinfo.RoutableIPs newRoutes := mapRequest.Hostinfo.RoutableIPs