fix name
This commit is contained in:
parent
f3808a306f
commit
d47905f01d
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ class TCPRelayHandler(object):
|
||||||
remote_sock.ioctl(socket.SIO_KEEPALIVE_VALS, (1, 1000 * val_idle, 1000 * val_intvl))
|
remote_sock.ioctl(socket.SIO_KEEPALIVE_VALS, (1, 1000 * val_idle, 1000 * val_intvl))
|
||||||
elif platform.system() in ["Darwin"]: #OSX
|
elif platform.system() in ["Darwin"]: #OSX
|
||||||
TCP_KEEPALIVE = 0x10
|
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:
|
if not self._is_local:
|
||||||
bind_addr = ''
|
bind_addr = ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue