优化代码

This commit is contained in:
GoEdgeLab
2022-01-01 20:15:39 +08:00
parent 6606fa049d
commit be412f5740
16 changed files with 97 additions and 86 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func (this *HTTPRequest) doRewrite() (shouldShop bool) {
if this.rewriteRule.Mode == serverconfigs.HTTPRewriteModeProxy {
// 外部URL
if this.rewriteIsExternalURL {
host := this.host
host := this.ReqHost
if len(this.rewriteRule.ProxyHost) > 0 {
host = this.rewriteRule.ProxyHost
}