mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-05-28 22:10:52 +02:00
fix lint errors
This commit is contained in:
parent
560c6b4ce8
commit
d3f4889f21
@ -15,6 +15,8 @@ POLL_TIME = 60 * 15
|
|||||||
NETSTAT_POLL_TIME = 30
|
NETSTAT_POLL_TIME = 30
|
||||||
CACHEFILE = os.path.expanduser('~/.sshuttle.hosts')
|
CACHEFILE = os.path.expanduser('~/.sshuttle.hosts')
|
||||||
|
|
||||||
|
# Have we already failed to write CACHEFILE?
|
||||||
|
CACHE_WRITE_FAILED = False
|
||||||
|
|
||||||
hostnames = {}
|
hostnames = {}
|
||||||
queue = {}
|
queue = {}
|
||||||
@ -29,7 +31,7 @@ except IOError:
|
|||||||
def _is_ip(s):
|
def _is_ip(s):
|
||||||
return re.match(r'\d+\.\d+\.\d+\.\d+$', s)
|
return re.match(r'\d+\.\d+\.\d+\.\d+$', s)
|
||||||
|
|
||||||
CACHE_WRITE_FAILED = False
|
|
||||||
def write_host_cache():
|
def write_host_cache():
|
||||||
"""If possible, write our hosts file to disk so future connections
|
"""If possible, write our hosts file to disk so future connections
|
||||||
can reuse the hosts that we already found."""
|
can reuse the hosts that we already found."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user