Merge pull request #836 from micro/prune-address
Prune the peer address
This commit is contained in:
commit
1f5ebf330d
@ -470,7 +470,7 @@ func (n *network) prunePeerRoutes(peer *node) error {
|
|||||||
|
|
||||||
// lookup all routes routable via gw
|
// lookup all routes routable via gw
|
||||||
q = []router.QueryOption{
|
q = []router.QueryOption{
|
||||||
router.QueryGateway(peer.id),
|
router.QueryGateway(peer.address),
|
||||||
}
|
}
|
||||||
if err := n.pruneRoutes(q...); err != nil {
|
if err := n.pruneRoutes(q...); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user