From 3339f97722e35d5ff351ef500de1e61344cbd33d Mon Sep 17 00:00:00 2001 From: Milan Lenco Date: Thu, 21 Jan 2021 13:53:33 +0100 Subject: feat: add option to bind listener to a (VRF) device Signed-off-by: Milan Lenco --- pkg/server/sockopt_bsd.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'pkg/server/sockopt_bsd.go') diff --git a/pkg/server/sockopt_bsd.go b/pkg/server/sockopt_bsd.go index fe7a6134..942e1289 100644 --- a/pkg/server/sockopt_bsd.go +++ b/pkg/server/sockopt_bsd.go @@ -35,15 +35,6 @@ func setTcpMD5SigSockopt(l *net.TCPListener, address string, key string) error { return setsockOptInt(sc, syscall.IPPROTO_TCP, tcpMD5SIG, 1) } -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 := extractFamilyFromTCPConn(conn) sc, err := conn.SyscallConn() -- cgit v1.2.3