-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: to
network modifier
#4524
Merged
+64
−5
Merged
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0262f93
feat: introduce `$to` in `NetworkFilters`
seia-soto 556f667
chore: allow only one option
seia-soto c7e0411
test: `$to`
seia-soto a69b5ea
feat: `to` as a negated alias of `denyallow`
seia-soto f106227
test: `$to` under `$denyallow`
seia-soto 35c36cc
feat: merge denyallow and to
seia-soto 958b6b6
Merge branch 'master' into network-modifier-to
seia-soto 86e5d84
chore: revert fix for parts literal
seia-soto b9004e5
refactor: use `for...of` loop
seia-soto b8d4221
Merge branch 'master' into network-modifier-to
seia-soto c65e50e
fix: invalid use of `Domains.parse`
seia-soto 69fb0b7
Move negation logic to Domains.parse
chrmod 8081ba5
refactor: optimize runtime negation
seia-soto 7b868fe
chore: preserve unprocessed `hostname` on debug
seia-soto 3d7bf42
chore: drop unnecessary evaluation
seia-soto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this would be best handled inside of
Domains
directly. Maybe with a flag?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second argument of "Domain" is "debug = false". I don't know if it's still straightforward to have a third argument after this. There's no reason not to do that but need to find how to do that cleanly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding an argument is only one way to go about it that does not change the main comment. You can also use static method, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is duplicate of #4525 which is already being handled. I don't know which will be merged first but I believe we can put this off for a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found that we depend on another variable called
denyallowEntities
which isSet<string>
. Alternative could be usingstring[]
and useSet
at the end to pull duplicates out. However, I don't feel it'll impose a low complexity.