summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go
index 0599d237..2c25b519 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -401,7 +401,7 @@ func (peer *Peer) sendUpdateMsgFromPaths(pList []table.Path) {
for _, p := range paths {
_, ok := peer.rfMap[p.GetRouteFamily()]
- if peer.peerConfig.NeighborAddress.Equal(p.GetNexthop()) {
+ if peer.peerConfig.NeighborAddress.Equal(p.GetSource().Address) {
log.WithFields(log.Fields{
"Topic": "Peer",
"Key": peer.peerConfig.NeighborAddress,