fix(webui): configure public websocket URL

This commit is contained in:
concertypin authored and Xubin Ren committed 2026-08-04 21:53:16 +08:00
1 parent e318e21cad
commit cb2f9d0bbd
5 files changed
+75 -1

No files matched your search

+2
View File
@@ -441,6 +441,8 @@ class GatewayHTTPHandler:
def _bootstrap_ws_url(self, request: Any) -> str:
headers = getattr(request, "headers", {}) or {}
if self.config.public_ws_url:
return self.config.public_ws_url
host = _safe_host_header(_case_insensitive_header(headers, "Host"))
if not host:
host = _host_for_url(self.config.host, self.config.port)