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

This commit is contained in:
刘祥超
2021-10-12 20:20:06 +08:00
parent bcce2a2767
commit f0d0a39a03
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)