[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #11054 [Tor]: Fall back to registered country if necessary



#11054: Fall back to registered country if necessary
----------------------------------+---------------------
 Reporter:  karsten               |          Owner:
     Type:  defect                |         Status:  new
 Priority:  normal                |      Milestone:
Component:  Tor                   |        Version:
 Keywords:  tor-client tor-relay  |  Actual Points:
Parent ID:                        |         Points:
----------------------------------+---------------------
 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.

 Found while updating Onionoo to use GeoLite2 instead of GeoLite.  Sorry
 for not spotting this earlier.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11054>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs