From b23ee588654a3e4b47ba3e4be4b2edc65dc3dba9 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 13 Sep 2019 11:55:53 -0700 Subject: [PATCH] Update default.go --- network/default.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/default.go b/network/default.go index c981f1d4..605fa017 100644 --- a/network/default.go +++ b/network/default.go @@ -554,7 +554,7 @@ func (n *network) processCtrlChan(client transport.Client, listener tunnel.Liste if pbRtrAdvert.Id != event.Route.Router { // if the origin router is not the advertising node peer // we can't rule out potential routing loops so we bail here - if !advertNode.HasPeer(event.Route.Router) { + if peer := advertNode.GetPeerNode(event.Route.Router); peer == nil { log.Debugf("Network skipping advert message from peer: %s", pbRtrAdvert.Id) continue }