Feature: SOURCE-IP-CIDR rule type (#96)
This commit is contained in:
@ -33,6 +33,7 @@ type SourceType int
|
||||
type Metadata struct {
|
||||
NetWork NetWork
|
||||
Source SourceType
|
||||
SourceIP *net.IP
|
||||
AddrType int
|
||||
Host string
|
||||
IP *net.IP
|
||||
|
@ -7,6 +7,7 @@ const (
|
||||
DomainKeyword
|
||||
GEOIP
|
||||
IPCIDR
|
||||
SourceIPCIDR
|
||||
FINAL
|
||||
)
|
||||
|
||||
@ -24,6 +25,8 @@ func (rt RuleType) String() string {
|
||||
return "GEOIP"
|
||||
case IPCIDR:
|
||||
return "IPCIDR"
|
||||
case SourceIPCIDR:
|
||||
return "SourceIPCIDR"
|
||||
case FINAL:
|
||||
return "FINAL"
|
||||
default:
|
||||
|
Reference in New Issue
Block a user