summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/fsm.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go
index 6c048acd..4c13edae 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -341,7 +341,9 @@ func (h *FSMHandler) active() bgp.FSMState {
if fsm.pConf.EbgpMultihop.EbgpMultihopConfig.Enabled == true {
ttl = int(fsm.pConf.EbgpMultihop.EbgpMultihopConfig.MultihopTtl)
}
- SetTcpTTLSockopts(conn.(*net.TCPConn), ttl)
+ if ttl != 0 {
+ SetTcpTTLSockopts(conn.(*net.TCPConn), ttl)
+ }
}
// we don't implement delayed open timer so move to opensent right
// away.