if the address is produced by a default route don't hash it (#1108)

This commit is contained in:
Asim Aslam 2020-01-14 11:20:13 +00:00 committed by GitHub
parent 75b1a62af3
commit b699d969e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,7 +286,7 @@ func (n *network) advertise(advertChan <-chan *router.Advert) {
address := event.Route.Address
// only hash the address if we're advertising our own local routes
if event.Route.Router == advert.Id {
if event.Route.Router == advert.Id && event.Route.Address != "*" {
// hash the service before advertising it
hasher.Reset()
// routes for multiple instances of a service will be collapsed here.