I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit fc618ad9 authored by str4d's avatar str4d
Browse files

Disabled country lookup, no GeoIP file

parent 15275680
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,8 @@ public class NetDbEntry { ...@@ -25,7 +25,8 @@ public class NetDbEntry {
public static NetDbEntry fromRouterInfo(RouterContext ctx, RouterInfo ri) { public static NetDbEntry fromRouterInfo(RouterContext ctx, RouterInfo ri) {
Hash us = ctx.routerHash(); Hash us = ctx.routerHash();
boolean isUs = ri.getHash().equals(us); boolean isUs = ri.getHash().equals(us);
String country = ctx.commSystem().getCountry(ri.getIdentity().getHash()); // XXX Disabled, no GeoIP file
String country = "";//ctx.commSystem().getCountry(ri.getIdentity().getHash());
return new NetDbEntry(ri, isUs, country); return new NetDbEntry(ri, isUs, country);
} }
......
...@@ -48,7 +48,8 @@ public class NetDbStatsLoader extends AsyncTaskLoader<List<ObjectCounter<String> ...@@ -48,7 +48,8 @@ public class NetDbStatsLoader extends AsyncTaskLoader<List<ObjectCounter<String>
String routerVersion = ri.getOption("router.version"); String routerVersion = ri.getOption("router.version");
if (routerVersion != null) if (routerVersion != null)
versions.increment(routerVersion); versions.increment(routerVersion);
String country = mRContext.commSystem().getCountry(key); // XXX Disabled, no GeoIP file
String country = null;//mRContext.commSystem().getCountry(key);
if(country != null) if(country != null)
countries.increment(country); countries.increment(country);
transports.increment(classifyTransports(ri)); transports.increment(classifyTransports(ri));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment