From 484a5efb99ef194d0ba87c045cc263f59d62358f Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 14 Dec 2025 00:38:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8B=89=E5=BC=BA=E4=BF=AE=E5=A4=8D=E4=BA=86?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=8D=8F=E8=AE=AE=E6=8B=BF=E4=B8=8D?= =?UTF-8?q?=E5=88=B0=20http=20url=20=E7=9A=84=E9=97=AE=E9=A2=98=20*=20?= =?UTF-8?q?=E5=90=8E=E6=82=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-protocol/LingChairClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-protocol/LingChairClient.ts b/client-protocol/LingChairClient.ts index 543152a..b5ee2a0 100644 --- a/client-protocol/LingChairClient.ts +++ b/client-protocol/LingChairClient.ts @@ -186,7 +186,7 @@ export default class LingChairClient { throw new CallbackError(re) } getBaseHttpUrl() { - const url = new URL(this.server_url) + const url = new URL(this.client.io.opts.host || (this.server_url == '' ? `${window.location.protocol}//${window.location.host}` : this.server_url)) return (({ 'ws:': 'http:', 'wss:': 'https:',