This commit is contained in:
Rasmus Andersson 2019-03-31 19:25:31 -07:00
parent 871bcce4e0
commit 4a575d2edc
121 changed files with 222214 additions and 219492 deletions

View file

@ -31,6 +31,13 @@ except OSError:
addr = ("localhost", 3003)
if len(sys.argv) > 1:
if sys.argv[1] == '-h':
print('usage: %s [-h | --bind-any]' % sys.argv[0], file=sys.stdout)
sys.exit(0)
elif sys.argv[1] == '--bind-any':
addr = ("0.0.0.0", 3003)
# make ^C instantly exit program
signal.signal(signal.SIGINT, sighandler)