Update default.go

This commit is contained in:
Asim Aslam 2019-09-13 11:55:53 -07:00 committed by GitHub
parent 323a72be34
commit b23ee58865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -554,7 +554,7 @@ func (n *network) processCtrlChan(client transport.Client, listener tunnel.Liste
if pbRtrAdvert.Id != event.Route.Router { if pbRtrAdvert.Id != event.Route.Router {
// if the origin router is not the advertising node peer // if the origin router is not the advertising node peer
// we can't rule out potential routing loops so we bail here // 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) log.Debugf("Network skipping advert message from peer: %s", pbRtrAdvert.Id)
continue continue
} }