Commit 02b104f5 authored by ther0bster's avatar ther0bster
Browse files

fix: socket.io client url

* fixes backend crash with IPv6 and some IPv4 setups
* instead of passing empty url, let socket.io set default url
  (defaults to window.location.host)
parent e6918397
......@@ -110,7 +110,7 @@
await WEBUI_NAME.set(backendConfig.name);
if ($config) {
const _socket = io(`${WEBUI_BASE_URL}`, {
const _socket = io({
path: '/ws/socket.io',
auth: { token: localStorage.token }
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment