URL跳转中增加例外域名和仅限域名

This commit is contained in:
GoEdgeLab
2023-11-10 11:05:21 +08:00
parent 826cf3004a
commit 2396b11f6c

View File

@@ -54,6 +54,9 @@ type HTTPHostRedirectConfig struct {
PortAfter int `yaml:"port" json:"portAfter"` // 跳转之后的端口
PortAfterScheme string `yaml:"portAfterScheme" json:"portAfterScheme"` // 跳转之后的协议
OnlyDomains []string `yaml:"onlyDomains" json:"onlyDomains"` // 限制域名
ExceptDomains []string `yaml:"exceptDomains" json:"exceptDomains"` // 排除域名
beforePortRanges [][2]int // [[from, to], {from2, to2}, ...]
beforeHasQuery bool
}