Minor fixes

This commit is contained in:
世界 2022-08-22 15:39:51 +08:00
parent 8fec78a5cd
commit 4216afe62f
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 8 additions and 8 deletions

View file

@ -730,11 +730,11 @@ func isGeositeDNSRule(rule option.DefaultDNSRule) bool {
}
func isProcessRule(rule option.DefaultRule) bool {
return len(rule.ProcessName) > 0
return len(rule.ProcessName) > 0 || len(rule.PackageName) > 0 || len(rule.User) > 0 || len(rule.UserID) > 0
}
func isProcessDNSRule(rule option.DefaultDNSRule) bool {
return len(rule.ProcessName) > 0
return len(rule.ProcessName) > 0 || len(rule.PackageName) > 0 || len(rule.User) > 0 || len(rule.UserID) > 0
}
func notPrivateNode(code string) bool {