Skip to content

Commit

Permalink
fix: add missing condition (#2470)
Browse files Browse the repository at this point in the history
Signed-off-by: ReleTor <[email protected]>
  • Loading branch information
ReleTor authored Jan 13, 2025
1 parent 8bc1459 commit 7b5b652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion route/rule/rule_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func hasHeadlessRule(rules []option.HeadlessRule, cond func(rule option.DefaultH
}

func isProcessHeadlessRule(rule option.DefaultHeadlessRule) bool {
return len(rule.ProcessName) > 0 || len(rule.ProcessPath) > 0 || len(rule.PackageName) > 0
return len(rule.ProcessName) > 0 || len(rule.ProcessPath) > 0 || len(rule.ProcessPathRegex) > 0 || len(rule.PackageName) > 0
}

func isWIFIHeadlessRule(rule option.DefaultHeadlessRule) bool {
Expand Down

0 comments on commit 7b5b652

Please sign in to comment.