mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-21 17:58:39 +02:00
Remove unused variable
This commit is contained in:
parent
7fd0a776e5
commit
56bc247ab8
@ -16,8 +16,6 @@ from sshuttle.ssnet import Handler, Proxy, Mux, MuxWrapper
|
|||||||
from sshuttle.helpers import b, log, debug1, debug2, debug3, Fatal, \
|
from sshuttle.helpers import b, log, debug1, debug2, debug3, Fatal, \
|
||||||
resolvconf_random_nameserver, which, get_env
|
resolvconf_random_nameserver, which, get_env
|
||||||
|
|
||||||
_client_server_samehost = False
|
|
||||||
|
|
||||||
|
|
||||||
def _ipmatch(ipstr):
|
def _ipmatch(ipstr):
|
||||||
# FIXME: IPv4 only
|
# FIXME: IPv4 only
|
||||||
@ -286,11 +284,9 @@ def main(latency_control, latency_buffer_size, auto_hosts, to_nameserver,
|
|||||||
# it, we delete it prior to send the synchronization header. The
|
# it, we delete it prior to send the synchronization header. The
|
||||||
# client can then determine if the server and client are running
|
# client can then determine if the server and client are running
|
||||||
# on the same machine by checking for the presence of the file.
|
# on the same machine by checking for the presence of the file.
|
||||||
global _client_server_samehost
|
|
||||||
if os.path.exists(localhost_detector):
|
if os.path.exists(localhost_detector):
|
||||||
debug3("Deleted the localhost_detector created by the client.\n")
|
debug3("Deleted the localhost_detector created by the client.\n")
|
||||||
os.remove(localhost_detector)
|
os.remove(localhost_detector)
|
||||||
_client_server_samehost = True
|
|
||||||
|
|
||||||
# synchronization header
|
# synchronization header
|
||||||
sys.stdout.write('\0\0SSHUTTLE0001')
|
sys.stdout.write('\0\0SSHUTTLE0001')
|
||||||
|
Loading…
Reference in New Issue
Block a user