Browse Source

doxing graph fix 2

master
gsd 3 weeks ago
parent
commit
c934917224
  1. 6
      src/main/java/app/services/io/readers/GeoIP.java

6
src/main/java/app/services/io/readers/GeoIP.java

@ -29,15 +29,15 @@ public class GeoIP extends BaseReader {
public String GetCountry(String ip) {
try {
return databaseReader.country(InetAddress.getByName(ip)).getCountry().getName();
} catch (GeoIp2Exception | IOException e) {
} catch (Exception e) {
return "Unknown";
}
}
public String GetCity(String ip) {
try {
return databaseReader.city(InetAddress.getByName(ip)).getCountry().getName();
} catch (GeoIp2Exception | IOException e) {
return databaseReader.city(InetAddress.getByName(ip)).getCity().getName();
} catch (Exception e) {
return "Unknown";
}
}

Loading…
Cancel
Save