支持PROXY Protocol/修复UDP源站无法修改的问题

This commit is contained in:
GoEdgeLab
2021-10-12 20:20:06 +08:00
parent 32de5da9c6
commit 0877fd5632
8 changed files with 115 additions and 14 deletions

View File

@@ -145,7 +145,7 @@ func (this *HTTPRequest) doReverseProxy() {
}
// 获取请求客户端
client, err := SharedHTTPClientPool.Client(this.RawReq, origin, originAddr)
client, err := SharedHTTPClientPool.Client(this, origin, originAddr, this.reverseProxy.ProxyProtocol)
if err != nil {
remotelogs.Error("HTTP_REQUEST_REVERSE_PROXY", err.Error())
this.write50x(err, http.StatusBadGateway)