diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-08-02 10:22:09 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-08-02 10:22:09 +0900 |
commit | 26513c438e279b22a56ec9250395f3d0a0ea65b8 (patch) | |
tree | e8feb8ae0b4ee030dfeae136fc5b17d361a245a4 /server/sockopt.go | |
parent | 07196197675c07c712eba0c24a934dcbe20783e4 (diff) |
server: add sockopt ttl support to darwin
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/sockopt.go')
-rw-r--r-- | server/sockopt.go | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |