summaryrefslogtreecommitdiffhomepage
path: root/server/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/peer.go')
-rw-r--r--server/peer.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/peer.go b/server/peer.go
index 2c25b519..bfee8f49 100644
--- a/server/peer.go
+++ b/server/peer.go
@@ -630,6 +630,11 @@ func (peer *Peer) loop() error {
peer.peerConfig.LocalAddress = peer.fsm.LocalAddr()
for rf, _ := range peer.rfMap {
pathList := peer.adjRib.GetOutPathList(rf)
+ if !peer.peerConfig.RouteServer.RouteServerClient {
+ for _, path := range pathList {
+ path.SetNexthop(peer.peerConfig.LocalAddress)
+ }
+ }
peer.sendMessages(table.CreateUpdateMsgFromPaths(pathList))
}
peer.fsm.peerConfig.BgpNeighborCommonState.Uptime = time.Now().Unix()