Gateway is now set to node Id, hence we prune peer.id Gateway

This commit is contained in:
Milos Gajdos 2019-09-17 16:31:33 +01:00
parent a72a2f717d
commit 3201b4cb36
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

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