Host for the websocket server can now be specified in the team server profile.

This commit is contained in:
Jakob Friedl
2025-11-03 09:52:01 +01:00
parent ec2388d993
commit b1603fc7b6
5 changed files with 8 additions and 8 deletions

View File

@@ -163,7 +163,7 @@ proc startServer*(profilePath: string) =
# Increased websocket message length in order to support dotnet assembly execution (1GB)
let server = newServer(router, websocketHandler, maxBodyLen = 1024 * 1024 * 1024, maxMessageLen = 1024 * 1024 * 1024)
server.serve(Port(cq.profile.getInt("team-server.port")), "0.0.0.0")
server.serve(Port(cq.profile.getInt("team-server.port")), cq.profile.getString("team-server.host"))
except CatchableError as err:
echo err.msg