From 2e7ac56f8b5a108dce0d4a1347aae81d4c8bc049 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc <1269158832@qq.com> Date: Fri, 25 Aug 2023 19:50:40 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=F0=9F=90=9B=20Replace=20Bing=20Domain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/proxy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/proxy.go b/common/proxy.go index add6f9bf34..d464d561d0 100644 --- a/common/proxy.go +++ b/common/proxy.go @@ -301,9 +301,9 @@ func replaceResBody(originalBody string, originalScheme string, originalHost str } // 对话暂时支持国内网络,而且 Vercel 还不支持 Websocket ,先不用 - // if strings.Contains(modifiedBodyStr, BING_CHAT_DOMAIN) { - // modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, BING_CHAT_DOMAIN, originalDomain) - // } + if strings.Contains(modifiedBodyStr, BING_URL.Host) { + modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, BING_URL.Host, originalHost) + } // if strings.Contains(modifiedBodyStr, "https://www.bingapis.com") { // modifiedBodyStr = strings.ReplaceAll(modifiedBodyStr, "https://www.bingapis.com", "https://bing.vcanbb.top")