[反向代理]实验性添加TOA支持

This commit is contained in:
GoEdgeLab
2020-12-03 10:17:28 +08:00
parent 8d7d52223a
commit ff08a1e6f3
15 changed files with 228 additions and 18 deletions

View File

@@ -41,7 +41,7 @@ func (this *HTTPRequest) doWebsocket() {
}
// TODO 增加N次错误重试重试的时候需要尝试不同的源站
originConn, err := OriginConnect(this.origin)
originConn, err := OriginConnect(this.origin, this.RawReq.RemoteAddr)
if err != nil {
logs.Error(err)
this.write500(err)