1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-12 22:41:07 +02:00

Merge pull request #836 from micro/prune-address

Prune the peer address
This commit is contained in:
Asim Aslam
2019-10-10 11:43:19 +01:00
committed by GitHub

View File

@ -470,7 +470,7 @@ func (n *network) prunePeerRoutes(peer *node) error {
// lookup all routes routable via gw
q = []router.QueryOption{
router.QueryGateway(peer.id),
router.QueryGateway(peer.address),
}
if err := n.pruneRoutes(q...); err != nil {
return err