Prune the peer address

This commit is contained in:
Asim Aslam 2019-10-10 11:25:28 +01:00
parent fe94237448
commit 0dee11e006

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