瀏覽代碼

Fix geoip by falling back to registered countries.

See 1d2179bc900f1646a5491b65294e78b175e70056 in master for details.

"""
Fall back to registered country if necessary.

When extracting geoip and geoip6 files from MaxMind's GeoLite2 Country
database, we only look at country->iso_code which is the two-character ISO
3166-1 country code of the country where MaxMind believes the end user is
located.

But if MaxMind thinks a range belongs to anonymous proxies, they don't put
anything there.  Hence, we omit those ranges and resolve them all to '??'.
That's not what we want.

What we should do is first try country->iso_code, and if there's no such
key, try registered_country->iso_code which is the country in which the
ISP has registered the IP address.

In short: let's fill all A1 entries with what ARIN et. al think.
"""
Karsten Loesing 10 年之前
父節點
當前提交
2658e70d16
共有 2 個文件被更改,包括 171 次插入161 次删除
  1. 3 0
      changes/geoip-february2014-regcountry
  2. 168 161
      src/config/geoip

+ 3 - 0
changes/geoip-february2014-regcountry

@@ -0,0 +1,3 @@
+  o Minor features:
+    - Fix our version of the February 7 2014 Maxmind GeoLite2 Country database.
+

文件差異過大導致無法顯示
+ 168 - 161
src/config/geoip


部分文件因文件數量過多而無法顯示