diff options
author | Milan Lenco <milan.lenco@pantheon.tech> | 2021-01-21 13:53:33 +0100 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2021-02-13 18:54:31 +0900 |
commit | 3339f97722e35d5ff351ef500de1e61344cbd33d (patch) | |
tree | 600f85f5a0cd1440670c62c3fd881a3a6efb0645 /pkg/server/sockopt_darwin.go | |
parent | c89a32ea7bbed1780b93431e2f94482df462206e (diff) |
feat: add option to bind listener to a (VRF) device
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Diffstat (limited to 'pkg/server/sockopt_darwin.go')
-rw-r--r-- | pkg/server/sockopt_darwin.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/server/sockopt_darwin.go b/pkg/server/sockopt_darwin.go index abb69d35..30220952 100644 --- a/pkg/server/sockopt_darwin.go +++ b/pkg/server/sockopt_darwin.go @@ -27,15 +27,6 @@ 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 { - family := extractFamilyFromTCPListener(l) - sc, err := l.SyscallConn() - if err != nil { - return err - } - return setsockoptIpTtl(sc, family, ttl) -} - func setTcpTTLSockopt(conn *net.TCPConn, ttl int) error { family := syscall.AF_INET if strings.Contains(conn.RemoteAddr().String(), "[") { |