-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Only match lowercase and ascii domains #630
Conversation
This comment has been minimized.
This comment has been minimized.
I also noticed |
Of course. |
I factored out conversion logic into separate function
What do you think? |
I am Ok with your current solution, just one problem left. |
We may also need to handle FQDN. Since all the ACL file we can find on the internet does not contain the last |
Also as a convenient feature it's also possible to trim whitespace for all rules since they're invisible and make rules invalid. |
There should be nothing left. Do you have others? @Y0ba |
Everything seems fine. |
* Only match lowercase and ascii domains * Fix clippy warnings * Make conversion in check_outbound_blocked to * unified ACL public APIs to convert hosts to ASCII * trim FQDN last dot * optimize Rules Debug message length * DNS server check ACL FQDN directly * trim whitespaces in rules * fix comment Co-authored-by: zonyitoo <zonyitoo@gmail.com>
No description provided.