lennylxx / ipv6-hosts

Fork of https://code.google.com/archive/p/ipv6-hosts/, focusing on automation
MIT License
4.46k stars 1.03k forks source link

Adding feature of DOH, EDNS, TCP connectivity detection and simplify hosts.out #290

Closed sharuijinfriend closed 5 years ago

sharuijinfriend commented 5 years ago

The changes

In the environment of CERNET2, 2001:4860:4860::8888 and 2001:4860:4860::8844 are actually blocked. So the old update_hosts.py cannot work correctly in China.

As IPV4 address has been blocked completely, we don't need ipv4 addresses in hosts. So the best solution is to separate the hosts_ipv4 and hosts_ipv6. If someone wants to using ipv4 hosts, then there is a choice for him.

我是一个计算机技术的门外汉,正在自学python,所以写的不好也请见谅。因为我自己也需要用,然后也挺感兴趣就改了您的代码。有些冗余的代码实际上是可以删除的,但是我比较懒也没删掉。比如实际上已经不使用dig命令了,那么对dig是否安装的检测也就没有必要。