summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-26 01:11:22 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-04-26 07:20:47 +0900
commit21938add9f67de5bea1ac7ccb4b21b24a996437b (patch)
tree59b9dc1376f153d03031bf5c20aeef2cd8f34f89 /server
parentf1e1329dab8183214c9727a80debd2d40d283d93 (diff)
move NeighborPortNumber config to transport.Config
More appropriate. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r--server/fsm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/fsm.go b/server/fsm.go
index 15299044..4132f3b1 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -312,8 +312,8 @@ func (fsm *FSM) connectLoop() error {
if fsm.state == bgp.BGP_FSM_ACTIVE && !fsm.pConf.GracefulRestart.State.PeerRestarting {
addr := fsm.pConf.Config.NeighborAddress
port := int(bgp.BGP_PORT)
- if fsm.pConf.Config.NeighborPortNumber != 0 {
- port = int(fsm.pConf.Config.NeighborPortNumber)
+ if fsm.pConf.Transport.Config.RemotePort != 0 {
+ port = int(fsm.pConf.Transport.Config.RemotePort)
}
host := net.JoinHostPort(addr, strconv.Itoa(port))
// check if LocalAddress has been configured