From d47905f01d1dc93dd4497439c9503ba2e3d30d3e Mon Sep 17 00:00:00 2001 From: BreakWa11 Date: Mon, 1 Aug 2016 22:56:37 +0800 Subject: [PATCH] fix name --- shadowsocks/tcprelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index e118a4b..a4e5c7b 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -579,7 +579,7 @@ class TCPRelayHandler(object): remote_sock.ioctl(socket.SIO_KEEPALIVE_VALS, (1, 1000 * val_idle, 1000 * val_intvl)) elif platform.system() in ["Darwin"]: #OSX TCP_KEEPALIVE = 0x10 - sock.setsockopt(socket.SOL_TCP, TCP_KEEPALIVE, val_intvl * 2) + remote_sock.setsockopt(socket.SOL_TCP, TCP_KEEPALIVE, val_intvl * 2) if not self._is_local: bind_addr = ''