Skip to content

Commit

Permalink
Update hostinfo if different
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Nov 27, 2023
1 parent 4cba75e commit bb72671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hscontrol/poll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bb72671

Please sign in to comment.