• Frederik Deweerdt's avatar
    hostwatch: add missing errno import · b35cfbd0
    Frederik Deweerdt authored
    If the ~/.sshuttle.hosts file does not exist, it triggers the following
    error:
    
           Traceback (most recent call last):
             File "./sshuttle", line 80, in <module>
               sys.exit(hostwatch.hw_main(extra))
             File "/home/def/p/sshuttle/hostwatch.py", line 246, in hw_main
               read_host_cache()
             File "/home/def/p/sshuttle/hostwatch.py", line 41, in read_host_cache
               if e.errno == errno.ENOENT:
           NameError: global name 'errno' is not defined
    
    (This only happened if you run 'sshuttle --hostwatch' from the command line
    directly, without passing it through assembler.py.)
    b35cfbd0
Name
Last commit
Last update
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
assembler.py Loading commit data...
client.py Loading commit data...
firewall.py Loading commit data...
helpers.py Loading commit data...
hostwatch.py Loading commit data...
main.py Loading commit data...
options.py Loading commit data...
server.py Loading commit data...
ssh.py Loading commit data...
sshuttle Loading commit data...
ssnet.py Loading commit data...