mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-18 17:28:12 +00:00
Fix hostname issue on machines without ".local" in hostname and handle missed TimeOut exception
This commit is contained in:
@@ -542,7 +542,8 @@ def start_server(background_thread=False):
|
||||
server.config['MAX_CONTENT_PATH'] = config['max_content_path']
|
||||
|
||||
# Get hostname and render clients
|
||||
RenderQueue.hostname = socket.gethostname()
|
||||
local_hostname = socket.gethostname()
|
||||
RenderQueue.hostname = local_hostname + (".local" if not local_hostname.endswith(".local") else "")
|
||||
server.config['HOSTNAME'] = RenderQueue.hostname
|
||||
|
||||
# disable most Flask logging
|
||||
|
||||
Reference in New Issue
Block a user