mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-14 15:40:24 +08:00
反向代理源站实现使用域名分组
This commit is contained in:
@@ -35,6 +35,7 @@ func (this *HTTPRequest) doReverseProxy() {
|
|||||||
requestCall := shared.NewRequestCall()
|
requestCall := shared.NewRequestCall()
|
||||||
requestCall.Request = this.RawReq
|
requestCall.Request = this.RawReq
|
||||||
requestCall.Formatter = this.Format
|
requestCall.Formatter = this.Format
|
||||||
|
requestCall.Domain = this.Host
|
||||||
origin := this.reverseProxy.NextOrigin(requestCall)
|
origin := this.reverseProxy.NextOrigin(requestCall)
|
||||||
requestCall.CallResponseCallbacks(this.writer)
|
requestCall.CallResponseCallbacks(this.writer)
|
||||||
if origin == nil {
|
if origin == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user