Fixed Localhost returning Not Known

This commit is contained in:
Rsl1122 2017-09-26 18:28:51 +03:00
parent ee59c74bbb
commit 52ec9594ee
2 changed files with 3 additions and 8 deletions

View File

@ -112,14 +112,6 @@
</plugins>
</build>
<repositories>
<repository>
<id>plan-repo</id>
<url>http://repo.fuzzlemann.de/artifactory/libs-release/</url>
</repository>
<repository>
<id>plan-snapshot-repo</id>
<url>http://repo.fuzzlemann.de/artifactory/libs-snapshot/</url>
</repository>
<repository>
<id>bungeecord-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>

View File

@ -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();