summaryrefslogtreecommitdiffhomepage
path: root/server/sockopt.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-07-12 11:54:15 +0900
committerIWASE Yusuke <iwase.yusuke0@gmail.com>2017-07-18 15:11:05 +0900
commitc3d98dac4df7d55fc6aceb4558707f252bbbd765 (patch)
tree795c27dca84473172484c237209f67e60510b63b /server/sockopt.go
parent178e65f8f113da82f8dfcc56b5fa7682da1bd932 (diff)
server: Set incoming TTL before accepting connection
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'server/sockopt.go')
-rw-r--r--server/sockopt.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sockopt.go b/server/sockopt.go
index e053bef0..4f42e59c 100644
--- a/server/sockopt.go
+++ b/server/sockopt.go
@@ -27,6 +27,10 @@ func SetTcpMD5SigSockopt(l *net.TCPListener, address string, key string) error {
return fmt.Errorf("setting md5 is not supported")
}
+func SetListenTcpTTLSockopt(l *net.TCPListener, ttl int) error {
+ return fmt.Errorf("setting ttl is not supported")
+}
+
func SetTcpTTLSockopt(conn *net.TCPConn, ttl int) error {
return fmt.Errorf("setting ttl is not supported")
}