Add --listen arg #28
1 changed files with 10 additions and 6 deletions
|
|
@ -23,6 +23,10 @@ def main():
|
||||||
)
|
)
|
||||||
# format="[%(asctime)s] :: %(levelname)s :: %(name)s :: %(module)s :: %(funcName)s :: %(lineno)d :: %(message)s")
|
# format="[%(asctime)s] :: %(levelname)s :: %(name)s :: %(module)s :: %(funcName)s :: %(lineno)d :: %(message)s")
|
||||||
|
|
||||||
|
listen_host = args.index("--listen")
|
||||||
|
if (len(args) - 1) >= (listen_host + 1):
|
||||||
|
listen_host = args[listen_host+1]
|
||||||
|
else:
|
||||||
if platform.system() == "Darwin": # If a Mac, use 0.0.0.0 for listening
|
if platform.system() == "Darwin": # If a Mac, use 0.0.0.0 for listening
|
||||||
listen_host = "0.0.0.0"
|
listen_host = "0.0.0.0"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue