From 52ec9594eedde0996e925d8f1146fc0efd2fe934 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Tue, 26 Sep 2017 18:28:51 +0300 Subject: [PATCH] Fixed Localhost returning Not Known --- Plan/dependency-reduced-pom.xml | 8 -------- .../djrapitops/plan/systems/cache/GeolocationCache.java | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Plan/dependency-reduced-pom.xml b/Plan/dependency-reduced-pom.xml index 05449f65a..57988a80c 100644 --- a/Plan/dependency-reduced-pom.xml +++ b/Plan/dependency-reduced-pom.xml @@ -112,14 +112,6 @@ - - plan-repo - http://repo.fuzzlemann.de/artifactory/libs-release/ - - - plan-snapshot-repo - http://repo.fuzzlemann.de/artifactory/libs-snapshot/ - bungeecord-repo https://oss.sonatype.org/content/repositories/snapshots diff --git a/Plan/src/main/java/com/djrapitops/plan/systems/cache/GeolocationCache.java b/Plan/src/main/java/com/djrapitops/plan/systems/cache/GeolocationCache.java index 8ec78b442..c8a2ac3b4 100644 --- a/Plan/src/main/java/com/djrapitops/plan/systems/cache/GeolocationCache.java +++ b/Plan/src/main/java/com/djrapitops/plan/systems/cache/GeolocationCache.java @@ -81,6 +81,9 @@ public class GeolocationCache { * @see #getCountry(String) */ private static String getUnCachedCountry(String ipAddress) { + if ("127.0.0.1".equals(ipAddress)) { + return "Local Machine"; + } try { checkDB();