Fix hostname issue on machines without ".local" in hostname and handle missed TimeOut exception

This commit is contained in:
Brett Williams
2023-06-10 16:07:58 -05:00
parent 38936d40ab
commit 2763a0c97f
2 changed files with 6 additions and 2 deletions

View File

@@ -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