Fix #31 #33

Merged
bmartin5692 merged 7 commits from fix-#31 into dev_broken-XMPP 2019-05-21 16:31:52 +02:00
Showing only changes of commit 5d8977d0cb - Show all commits

View file

@ -23,11 +23,15 @@ 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")
if platform.system() == "Darwin": # If a Mac, use 0.0.0.0 for listening listen_host = args.index("--listen")
listen_host = "0.0.0.0" if (len(args) - 1) >= (listen_host + 1):
listen_host = args[listen_host+1]
else: else:
listen_host = socket.gethostbyname(socket.gethostname()) if platform.system() == "Darwin": # If a Mac, use 0.0.0.0 for listening
#listen_host = "localhost" # Try this if the above doesn't work listen_host = "0.0.0.0"
else:
listen_host = socket.gethostbyname(socket.gethostname())
#listen_host = "localhost" # Try this if the above doesn't work
conf_address_443 = (listen_host, 443) conf_address_443 = (listen_host, 443)