iBug / pac

科学上网,智能分流,使用 GFWList 和 IP 地址双重判断。现在已有 475 颗 ★
MIT License
475 stars 82 forks source link

完整的国内ipv6段? #16

Open redstoneleo opened 4 years ago

redstoneleo commented 4 years ago

我记得以前作者说找不到完整的国内ipv6段,能否劳烦作者鉴别一下geoip这个工具能不能用,辛苦啦! https://github.com/v2ray/geoip https://www.maxmind.com/en/geoip2-services-and-databases

iBug commented 4 years ago

MaxMind 的 GeoIP 数据库确认能用,但是我还没想好怎么处理。CSV 版本处理起来应该会简单一点,但是还要在代码里添加 IPv6 的检测与判断,工作量说大不大说小不小,以后有空研究一下。

redstoneleo commented 4 years ago

谢谢!提示一下:GeoIP 有好多语言的binding

iBug commented 4 years ago

语言 binding 没啥用,我只需要国家代码(毕竟不是什么需要显示给用户的文字)。思路我基本有了,等下个月考完试考虑看看

iBug commented 4 years ago

候选资源:https://github.com/gaoyifan/china-operator-ip/blob/ip-lists/china6.txt

优点:可以直接从 raw.githubusercontent.com 拉取文本文件,不需要从 MaxMind 用 License Key 下载(特别是下载之后还要处理 unzip 的事情)

weiyideai520 commented 1 year ago

这个项目弃坑了吗?一直没有补上IPV6

weijarz commented 1 year ago

@weiyideai520 换clash分流,性能还更好