Browse Source

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)
ther0bster 9 months ago
parent
commit
02b104f56b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/routes/+layout.svelte

+ 1 - 1
src/routes/+layout.svelte

@@ -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 }
 				});