chore: add IN-USER
and IN-NAME
rules
This commit is contained in:
@ -133,6 +133,7 @@ type Metadata struct {
|
||||
InIP netip.Addr `json:"inboundIP"`
|
||||
InPort string `json:"inboundPort"`
|
||||
InName string `json:"inboundName"`
|
||||
InUser string `json:"inboundUser"`
|
||||
Host string `json:"host"`
|
||||
DNSMode DNSMode `json:"dnsMode"`
|
||||
Uid uint32 `json:"uid"`
|
||||
|
@ -14,12 +14,14 @@ const (
|
||||
SrcPort
|
||||
DstPort
|
||||
InPort
|
||||
InUser
|
||||
InName
|
||||
InType
|
||||
Process
|
||||
ProcessPath
|
||||
RuleSet
|
||||
Network
|
||||
Uid
|
||||
INTYPE
|
||||
SubRules
|
||||
MATCH
|
||||
AND
|
||||
@ -55,6 +57,12 @@ func (rt RuleType) String() string {
|
||||
return "DstPort"
|
||||
case InPort:
|
||||
return "InPort"
|
||||
case InUser:
|
||||
return "InUser"
|
||||
case InName:
|
||||
return "InName"
|
||||
case InType:
|
||||
return "InType"
|
||||
case Process:
|
||||
return "Process"
|
||||
case ProcessPath:
|
||||
@ -67,8 +75,6 @@ func (rt RuleType) String() string {
|
||||
return "Network"
|
||||
case Uid:
|
||||
return "Uid"
|
||||
case INTYPE:
|
||||
return "InType"
|
||||
case SubRules:
|
||||
return "SubRules"
|
||||
case AND:
|
||||
|
Reference in New Issue
Block a user