Repository navigation
Conversation
Closed
5 tasks done
nekohasekai
force-pushed
the
testing
branch
2 times, most recently
from
April 10, 2026 03:36
6967a17 to
a2aa2ac
Compare
Contributor
Author
|
Thanks for implementing this upstream in 6746fcb. This PR is now superseded, so I’m closing it. I left one separate note about package_name_regex and the process-rule helper checks, since that part seems to differ from my branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4009
Adds
package_name_regex— regex matching for Android package names, analogous to the existingprocess_path_regexfor process paths.Supported in all rule types: route rules, DNS rules, and headless rules (rule sets), as requested.
When combined with
invert, this allows matching connections where the package name could not be determined:{"package_name_regex": [".*"], "invert": true, "outbound": "block"}Changes:
route/rule/rule_item_package_name_regex.goNote: I did not add "Since sing-box ..." / "Changes in sing-box ..." version markers in the documentation because I don't know which release this will land in. Happy to update if you prefer a specific version.