From 47ce15864ca8b22856ae941e4abdb4becc89ca9b Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 4 Nov 2022 20:59:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=9F=E5=90=8D=E8=B7=B3=E8=BD=AC=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=BF=BD=E7=95=A5=E8=B7=B3=E8=BD=AC=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/serverconfigs/http_host_redirect_config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/serverconfigs/http_host_redirect_config.go b/pkg/serverconfigs/http_host_redirect_config.go index c375d23..6c08a65 100644 --- a/pkg/serverconfigs/http_host_redirect_config.go +++ b/pkg/serverconfigs/http_host_redirect_config.go @@ -39,10 +39,11 @@ type HTTPHostRedirectConfig struct { beforeURLRegexp *regexp.Regexp // 域名跳转 - DomainsAll bool `yaml:"domainAll" json:"domainsAll"` // 所有域名都跳转 - DomainsBefore []string `yaml:"domainsBefore" json:"domainsBefore"` // 指定跳转之前的域名 - DomainAfter string `yaml:"domainAfter" json:"domainAfter"` // 跳转之后的域名 - DomainAfterScheme string `yaml:"domainAfterScheme" json:"domainAfterScheme"` // 跳转之后的协议 + DomainsAll bool `yaml:"domainAll" json:"domainsAll"` // 所有域名都跳转 + DomainsBefore []string `yaml:"domainsBefore" json:"domainsBefore"` // 指定跳转之前的域名 + DomainBeforeIgnorePorts bool `yaml:"domainBeforeIgnorePorts" json:"domainBeforeIgnorePorts"` // 忽略跳转前端口 + DomainAfter string `yaml:"domainAfter" json:"domainAfter"` // 跳转之后的域名 + DomainAfterScheme string `yaml:"domainAfterScheme" json:"domainAfterScheme"` // 跳转之后的协议 //DomainRegexp bool `yaml:"domainRegexp" json:"domainRegexp"` // 使用正则匹配域名 TODO 暂时不实现 //DomainKeepPort bool `yaml:"domainKeepPort" json:"domainKeepPort"` // 是否保持端口 TODO 暂时不实现 //DomainNewPort int `yaml:"domainNewPort" json:"domainNewPort"` // 是否使用新端口 TODO 暂时不实现