1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00

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

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.