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

This commit is contained in:
刘祥超
2023-11-10 11:05:21 +08:00
parent 412704c9f3
commit 4c7de6bdc2

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
}