diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-25 10:41:09 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-27 10:32:42 +0000 |
commit | 43f3d009d63e7d4d354a2a8b87f5967f3135b74e (patch) | |
tree | a88b213affb0245544feeef7079d0d6909d816f0 /server | |
parent | 1cbebfd6a35ee67c0126e2d7410d68597f00cb1e (diff) |
server: fix not to modify Transport.Config
modify Transport.State instead
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 2 |
1 files changed, 1 insertions, 1 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) |