From 26513c438e279b22a56ec9250395f3d0a0ea65b8 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Wed, 2 Aug 2017 10:22:09 +0900 Subject: server: add sockopt ttl support to darwin Signed-off-by: FUJITA Tomonori --- server/sockopt.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/sockopt.go') diff --git a/server/sockopt.go b/server/sockopt.go index 4f42e59c..e1c9c467 100644 --- a/server/sockopt.go +++ b/server/sockopt.go @@ -12,7 +12,7 @@ // implied. // See the License for the specific language governing permissions and // limitations under the License. -// +build !linux,!dragonfly,!freebsd,!netbsd,!openbsd +// +build !linux,!openbsd package server @@ -24,19 +24,19 @@ import ( ) func SetTcpMD5SigSockopt(l *net.TCPListener, address string, key string) error { - return fmt.Errorf("setting md5 is not supported") + return setTcpMD5SigSockopt(l, address, key) } func SetListenTcpTTLSockopt(l *net.TCPListener, ttl int) error { - return fmt.Errorf("setting ttl is not supported") + return setListenTcpTTLSockopt(l, ttl) } func SetTcpTTLSockopt(conn *net.TCPConn, ttl int) error { - return fmt.Errorf("setting ttl is not supported") + return setTcpTTLSockopt(conn, ttl) } func SetTcpMinTTLSockopt(conn *net.TCPConn, ttl int) error { - return fmt.Errorf("setting min ttl is not supported") + return setTcpMinTTLSockopt(conn, ttl) } type TCPDialer struct { -- cgit v1.2.3