Simple Blocklist
attilaolah opened this issue · comments
Attila Oláh commented
Support a simple blocklist based on the current hosts file reader.
- read the hosts file line by line
- chop off the comments from the end of the line
- if there's stuff left before the comment, see if the IP is
127.0.0.1
or::1
. - if yes, add the host to the blocklist (
s.Block(host)
).
Attila Oláh commented
This is now done and merged.