Skip to content

Commit

Permalink
Fix route change notifier (netbirdio#1431)
Browse files Browse the repository at this point in the history
Compare the differences between the new routes
and initial routes
  • Loading branch information
pappz committed Jan 3, 2024
1 parent 30cbe88 commit c830f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/internal/routemanager/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (n *notifier) onNewRoutes(idMap map[string][]*route.Route) {
}

sort.Strings(newNets)
if !n.hasDiff(n.routeRangers, newNets) {
if !n.hasDiff(n.initialRouteRangers, newNets) {
return
}

Expand Down

0 comments on commit c830f57

Please sign in to comment.