Loyalsoldier / geoip

🌚 🌍 🌝 GeoIP 规则文件加强版,同时支持定制 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb。Enhanced edition of GeoIP files for V2Ray, Xray-core, Clash, Trojan-Go, Leaf and Hysteria, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.
Creative Commons Attribution Share Alike 4.0 International
3.37k stars 598 forks source link

dat格式可以在ngx_http_geoip_module模块使用吗? #175

Closed shatian114 closed 1 week ago

shatian114 commented 1 week ago

我使用本站的所有dat格式,在ngx_http_geoip (https://nginx.org/en/docs/http/ngx_http_geoip_module.html) 模块进行测试,都读取不到变量geoip_country_code等参数,但是使用apt install geoip得到的dat文件,可以读取到参数

Loyalsoldier commented 1 week ago

本项目中的 dat 格式源于 V2Ray,不是 MaxMind 的 dat 格式。apt 仓库中的 geoip 是 MaxMind 官方项目,不是本项目。

shatian114 commented 1 week ago

本项目中的 dat 格式源于 V2Ray,不是 MaxMind 的 dat 格式。apt 仓库中的 geoip 是 MaxMind 官方项目,不是本项目。

有办法将本项目的格式转换称MaxMind的格式吗?

Loyalsoldier commented 1 week ago

MaxMind dat 格式已经被弃用了,现在都是 mmdb 格式,但应该可以转换,你看看 https://stackoverflow.com/questions/54097838/geoip-dat-gz-and-geolitecity-dat-gz-not-longer-available-getting-404-trying-to

shatian114 commented 1 week ago

MaxMind dat 格式已经被弃用了,现在都是 mmdb 格式,但应该可以转换,你看看 https://stackoverflow.com/questions/54097838/geoip-dat-gz-and-geolitecity-dat-gz-not-longer-available-getting-404-trying-to

非常感谢,有一个ngx_http_geoip2_module模块,应该是支持新的格式,我先试下这个模块