mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-24 06:49:12 +01:00
Fix: Use sock for consistency.
This commit is contained in:
parent
c013386ecb
commit
035c5ad7a6
@ -360,7 +360,7 @@ def onaccept_tcp(listener, method, mux, handlers):
|
|||||||
dstip = original_dst(sock)
|
dstip = original_dst(sock)
|
||||||
debug1('Accept TCP: %s:%r -> %s:%r.\n' % (srcip[0],srcip[1],
|
debug1('Accept TCP: %s:%r -> %s:%r.\n' % (srcip[0],srcip[1],
|
||||||
dstip[0],dstip[1]))
|
dstip[0],dstip[1]))
|
||||||
if dstip[1] == listener.getsockname()[1] and islocal(dstip[0], sock.family):
|
if dstip[1] == sock.getsockname()[1] and islocal(dstip[0], sock.family):
|
||||||
debug1("-- ignored: that's my address!\n")
|
debug1("-- ignored: that's my address!\n")
|
||||||
sock.close()
|
sock.close()
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user