summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-07 22:39:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-01-07 22:39:31 +0900
commitd92b22f2c69b1ecdddbe2e3f477ae6551a51b9fb (patch)
treef23e73be8dee79cd3a9939809dee191dcc470a63 /server/server.go
parentbeb39354e51eb74ab0a13d93dfde9e66e85d5bb6 (diff)
server: set ttl to 1
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index 3275e5dc..bc4274de 100644
--- a/server/server.go
+++ b/server/server.go
@@ -92,6 +92,9 @@ func listenAndAccept(proto string, port int, ch chan *net.TCPConn) (*net.TCPList
log.Info(err)
continue
}
+ // TODO: check ebgp or not
+ ttl := 1
+ SetTcpTTLSockopts(conn, ttl)
ch <- conn
}
}()