From 56bc247ab8a151aadcf5d9a393e4f6877a3c25ed Mon Sep 17 00:00:00 2001 From: Scott Kuhl Date: Mon, 19 Jul 2021 12:13:16 -0400 Subject: [PATCH] Remove unused variable --- sshuttle/server.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sshuttle/server.py b/sshuttle/server.py index 379495d..407c7db 100644 --- a/sshuttle/server.py +++ b/sshuttle/server.py @@ -16,8 +16,6 @@ from sshuttle.ssnet import Handler, Proxy, Mux, MuxWrapper from sshuttle.helpers import b, log, debug1, debug2, debug3, Fatal, \ resolvconf_random_nameserver, which, get_env -_client_server_samehost = False - def _ipmatch(ipstr): # 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 # client can then determine if the server and client are running # on the same machine by checking for the presence of the file. - global _client_server_samehost if os.path.exists(localhost_detector): debug3("Deleted the localhost_detector created by the client.\n") os.remove(localhost_detector) - _client_server_samehost = True # synchronization header sys.stdout.write('\0\0SSHUTTLE0001')