Skip to content

Commit

Permalink
[Fix] 🐛 Replace Bing Domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Aug 25, 2023
1 parent 527e272 commit 2e7ac56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2e7ac56

Please # to comment.