Skip to content

Commit 8b51a69

Browse files
SimonDanischshashi
authored andcommitted
fix config function
1 parent 694d9b2 commit 8b51a69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/providers/generic_http.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ const webio_server_config = Ref{typeof((url = "", http_port = 0, ws_url = ""))}(
158158

159159
function global_server_config()
160160
if !isassigned(webio_server_config)
161-
webio_server_config[] = (
162-
url = get(ENV, "WEBIO_SERVER_HOST_URL", "127.0.0.1"),
163-
http_port = parse(Int, get(ENV, "WEBIO_HTTP_PORT", "8081")),
164-
ws_url = get(ENV, "WEBIO_WEBSOCKT_URL", url * ":" * http_port * "/webio_websocket/")
165-
)
161+
url = get(ENV, "WEBIO_SERVER_HOST_URL", "127.0.0.1")
162+
http_port = parse(Int, get(ENV, "WEBIO_HTTP_PORT", "8081"))
163+
ws_default = string(url, ":", http_port, "/webio_websocket/")
164+
ws_url = get(ENV, "WEBIO_WEBSOCKT_URL", ws_default)
165+
webio_server_config[] = (url = url, http_port = http_port, ws_url = ws_url)
166166
end
167167
webio_server_config[]
168168
end

0 commit comments

Comments
 (0)