mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-30 20:31:01 +08:00
修复反向代理sticky调度算法无法生效的Bug
This commit is contained in:
@@ -33,7 +33,9 @@ func (this *HTTPRequest) doReverseProxy() {
|
|||||||
|
|
||||||
// 源站
|
// 源站
|
||||||
requestCall := shared.NewRequestCall()
|
requestCall := shared.NewRequestCall()
|
||||||
|
requestCall.Request = this.RawReq
|
||||||
origin := this.reverseProxy.NextOrigin(requestCall)
|
origin := this.reverseProxy.NextOrigin(requestCall)
|
||||||
|
requestCall.CallResponseCallbacks(this.writer)
|
||||||
if origin == nil {
|
if origin == nil {
|
||||||
err := errors.New(this.requestPath() + ": no available backends for reverse proxy")
|
err := errors.New(this.requestPath() + ": no available backends for reverse proxy")
|
||||||
remotelogs.Error("HTTP_REQUEST_REVERSE_PROXY", err.Error())
|
remotelogs.Error("HTTP_REQUEST_REVERSE_PROXY", err.Error())
|
||||||
|
|||||||
Reference in New Issue
Block a user