mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-04-11 14:46:22 +02:00
Fixed Localhost returning Not Known
This commit is contained in:
parent
ee59c74bbb
commit
52ec9594ee
@ -112,14 +112,6 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<repositories>
|
<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>
|
<repository>
|
||||||
<id>bungeecord-repo</id>
|
<id>bungeecord-repo</id>
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
@ -81,6 +81,9 @@ public class GeolocationCache {
|
|||||||
* @see #getCountry(String)
|
* @see #getCountry(String)
|
||||||
*/
|
*/
|
||||||
private static String getUnCachedCountry(String ipAddress) {
|
private static String getUnCachedCountry(String ipAddress) {
|
||||||
|
if ("127.0.0.1".equals(ipAddress)) {
|
||||||
|
return "Local Machine";
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
checkDB();
|
checkDB();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user