aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2014-02-25 13:20:04 +0100
committerKarsten Loesing <karsten.loesing@gmx.net>2014-02-25 13:20:04 +0100
commit1d2179bc900f1646a5491b65294e78b175e70056 (patch)
tree441cda665e67e91ef2ce6fc6f87fbaafd38930ab /src/or/directory.c
parent0efa2821c7e1865d8f515df735fd8ad0db5ff467 (diff)
downloadtor-1d2179bc900f1646a5491b65294e78b175e70056.tar
tor-1d2179bc900f1646a5491b65294e78b175e70056.tar.gz
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.
Diffstat (limited to 'src/or/directory.c')
0 files changed, 0 insertions, 0 deletions