Fix route change notifier (#1431)

Compare the differences between the new routes
and initial routes
This commit is contained in:
Zoltan Papp 2024-01-03 11:54:19 +01:00 committed by GitHub
parent 875a2e2b63
commit 163933d429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}