mirror of
https://github.com/open-webui/open-webui
synced 2025-02-20 12:00:22 +00:00
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)
This commit is contained in:
parent
e691839771
commit
02b104f56b
@ -110,7 +110,7 @@
|
|||||||
await WEBUI_NAME.set(backendConfig.name);
|
await WEBUI_NAME.set(backendConfig.name);
|
||||||
|
|
||||||
if ($config) {
|
if ($config) {
|
||||||
const _socket = io(`${WEBUI_BASE_URL}`, {
|
const _socket = io({
|
||||||
path: '/ws/socket.io',
|
path: '/ws/socket.io',
|
||||||
auth: { token: localStorage.token }
|
auth: { token: localStorage.token }
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user