Add country codes to relays inside a NetDir
- When the
geoipfeature flag oftor-netdiris enabled, perform GeoIP lookups for all relays added to the directory and add the resulting country code to theRelaystruct.- The GeoIP database is provided in a new
PartialNetDir::new_with_geoipconstructor.
- The GeoIP database is provided in a new
- A new trait was also added to
tor-linkspec,HasCountryCode, to enable getting this data out from other crates.
Part of onionmasq#47 (closed).