实现IP黑白名单、国家|地区封禁、省份封禁

This commit is contained in:
GoEdgeLab
2020-11-09 10:43:47 +08:00
parent 7d5eddd367
commit 7b9e8ff668
10 changed files with 340 additions and 79 deletions

View File

@@ -24,6 +24,14 @@ func (this *HTTPFirewallInboundConfig) Init() error {
return err
}
}
if this.Region != nil {
err := this.Region.Init()
if err != nil {
return err
}
}
return nil
}