Add process_path rule item (#51)

* process matching supports full path
* Remove strings.ToLower
This commit is contained in:
dyhkwong authored and GitHub committed 2022-08-30 10:44:40 +08:00
1 parent cd98ea5008
commit 374743d022
7 files changed
+67 -4

No files matched your search

+1
View File
@@ -94,6 +94,7 @@ type DefaultDNSRule struct {
Port Listable[uint16] `json:"port,omitempty"`
PortRange Listable[string] `json:"port_range,omitempty"`
ProcessName Listable[string] `json:"process_name,omitempty"`
ProcessPath Listable[string] `json:"process_path,omitempty"`
PackageName Listable[string] `json:"package_name,omitempty"`
User Listable[string] `json:"user,omitempty"`
UserID Listable[int32] `json:"user_id,omitempty"`
+1
View File
@@ -96,6 +96,7 @@ type DefaultRule struct {
Port Listable[uint16] `json:"port,omitempty"`
PortRange Listable[string] `json:"port_range,omitempty"`
ProcessName Listable[string] `json:"process_name,omitempty"`
ProcessPath Listable[string] `json:"process_path,omitempty"`
PackageName Listable[string] `json:"package_name,omitempty"`
User Listable[string] `json:"user,omitempty"`
UserID Listable[int32] `json:"user_id,omitempty"`