Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIREWALL: Allow to block hosts by IP address
When blocking a host, its hostname is resolved using the `dig` command. If an IP address is provided, `dig` returns nothing. Check whether it is an IP address before launching `dig`. No matter whether the correct family is requested, do not call `dig` when an IP address is provided, in case the caller has already blocked the DNS host.
- Loading branch information