mirror of https://github.com/0xERR0R/blocky.git
a2ab7c3ef1
Unify the hosts file parsing between the hosts resolver and lists so the resolver supports more data sources than local files. Lists' group cache is now re-used if refresh fails. Also improve lookups in hosts: Instead of iterating through all hosts+aliases for each A/AAAA query, we can do a single lookup. For PTR we search through only the hosts with an IP version that matches the question. And compare IPs instead of building the reverse DNS name for each IP in the hosts database. |
||
---|---|---|
.. | ||
parsers | ||
downloader.go | ||
downloader_test.go | ||
list_cache.go | ||
list_cache_benchmark_test.go | ||
list_cache_enum.go | ||
list_cache_test.go | ||
list_suite_test.go |