diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-07-12 11:54:15 +0900 |
---|---|---|
committer | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-07-18 15:11:05 +0900 |
commit | c3d98dac4df7d55fc6aceb4558707f252bbbd765 (patch) | |
tree | 795c27dca84473172484c237209f67e60510b63b /server/sockopt.go | |
parent | 178e65f8f113da82f8dfcc56b5fa7682da1bd932 (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.go | 4 |
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") } |