From 0dee11e006a28dc6aa1d05d766861002801e6ce2 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 10 Oct 2019 11:25:28 +0100 Subject: [PATCH] Prune the peer address --- network/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/default.go b/network/default.go index 04385dcc..72b638ef 100644 --- a/network/default.go +++ b/network/default.go @@ -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