Archived
增加国家/地区封禁管理
This commit is contained in:
@@ -4,6 +4,9 @@ type HTTPFirewallInboundConfig struct {
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
GroupRefs []*HTTPFirewallRuleGroupRef `yaml:"groupRefs" json:"groupRefs"`
|
||||
Groups []*HTTPFirewallRuleGroup `yaml:"groups" json:"groups"`
|
||||
|
||||
// 地区相关
|
||||
Region *HTTPFirewallRegionConfig `yaml:"region" json:"region"`
|
||||
}
|
||||
|
||||
// 初始化
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package firewallconfigs
|
||||
|
||||
type HTTPFirewallRegionConfig struct {
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
DenyCountryIds []int64 `yaml:"denyCountryIds" json:"denyCountryIds"` // 封禁的国家|地区
|
||||
DenyProvinces []int64 `yaml:"denyProvinceIds" json:"denyProvinceIds"` // 封禁的省或自治区
|
||||
}
|
||||
Reference in New Issue
Block a user