Closed Mygod closed 7 months ago
@Mygod Thanks for the PR! Can you add a unit-test for this?
I'm running it in production and it works fine. :)
I'm running it in production and it works fine. :)
We still need a unit-test for it :-)
I wonder how to rebase on master
...
@Mygod Create a new PR with the new branch
1. What does this change do, exactly?
Skip DNS lookup if there are no IP ACL rules. This also in some sense mitigates DoS attacks by flooding servers with a lot of denied hostnames, which could lead to overloading the DNS services.
Requesting an invalid disallowed hostname will also now return 403 correctly instead of 502.
2. Please link to the relevant issues.
N/A
3. Which documentation changes (if any) need to be made because of this PR?
None.
4. Checklist