summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/server.go2
-rw-r--r--table/path.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/server.go b/server/server.go
index 4d0d5308..0869917d 100644
--- a/server/server.go
+++ b/server/server.go
@@ -747,7 +747,7 @@ func (server *BgpServer) handleFSMMessage(peer *Peer, e *FsmMsg) []*SenderMsg {
if nextState == bgp.BGP_FSM_ESTABLISHED {
// update for export policy
laddr, _ := peer.fsm.LocalHostPort()
- peer.fsm.pConf.Transport.Config.LocalAddress = laddr
+ peer.fsm.pConf.Transport.State.LocalAddress = laddr
deferralExpiredFunc := func(family bgp.RouteFamily) func() {
return func() {
req := NewGrpcRequest(REQ_DEFERRAL_TIMER_EXPIRED, peer.ID(), family, nil)
diff --git a/table/path.go b/table/path.go
index 48712610..cefe974f 100644
--- a/table/path.go
+++ b/table/path.go
@@ -161,7 +161,7 @@ func (path *Path) UpdatePathAttrs(global *config.Global, peer *config.Neighbor)
return
}
- localAddress := net.ParseIP(peer.Transport.Config.LocalAddress)
+ localAddress := net.ParseIP(peer.Transport.State.LocalAddress)
isZero := func(ip net.IP) bool {
return ip.Equal(net.ParseIP("0.0.0.0")) || ip.Equal(net.ParseIP("::"))
}