From fc618ad9e51e15442ece528154c2fb8dd6be5965 Mon Sep 17 00:00:00 2001
From: str4d <str4d@mail.i2p>
Date: Tue, 12 Nov 2013 02:20:39 +0000
Subject: [PATCH] Disabled country lookup, no GeoIP file

---
 src/net/i2p/android/router/loader/NetDbEntry.java       | 3 ++-
 src/net/i2p/android/router/loader/NetDbStatsLoader.java | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/net/i2p/android/router/loader/NetDbEntry.java b/src/net/i2p/android/router/loader/NetDbEntry.java
index d37131d83..847fe7a2c 100644
--- a/src/net/i2p/android/router/loader/NetDbEntry.java
+++ b/src/net/i2p/android/router/loader/NetDbEntry.java
@@ -25,7 +25,8 @@ public class NetDbEntry {
     public static NetDbEntry fromRouterInfo(RouterContext ctx, RouterInfo ri) {
         Hash us = ctx.routerHash();
         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);
     }
 
diff --git a/src/net/i2p/android/router/loader/NetDbStatsLoader.java b/src/net/i2p/android/router/loader/NetDbStatsLoader.java
index aadfa68d7..2c2cdb169 100644
--- a/src/net/i2p/android/router/loader/NetDbStatsLoader.java
+++ b/src/net/i2p/android/router/loader/NetDbStatsLoader.java
@@ -48,7 +48,8 @@ public class NetDbStatsLoader extends AsyncTaskLoader<List<ObjectCounter<String>
                     String routerVersion = ri.getOption("router.version");
                     if (routerVersion != null)
                         versions.increment(routerVersion);
-                    String country = mRContext.commSystem().getCountry(key);
+                    // XXX Disabled, no GeoIP file
+                    String country = null;//mRContext.commSystem().getCountry(key);
                     if(country != null)
                         countries.increment(country);
                     transports.increment(classifyTransports(ri));
-- 
GitLab