Improve: add DOMAIN rule

This commit is contained in:
Dreamacro
2018-09-09 15:01:46 +08:00
parent fcb46e7706
commit 4082a2c700
3 changed files with 42 additions and 1 deletions

View File

@ -2,7 +2,8 @@ package constant
// Rule Type
const (
DomainSuffix RuleType = iota
Domain RuleType = iota
DomainSuffix
DomainKeyword
GEOIP
IPCIDR
@ -13,6 +14,8 @@ type RuleType int
func (rt RuleType) String() string {
switch rt {
case Domain:
return "Domain"
case DomainSuffix:
return "DomainSuffix"
case DomainKeyword: