mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-05-08 21:12:26 +00:00
Fix geodb download with Arabic language
This commit is contained in:
@@ -33,6 +33,7 @@ import java.io.IOException;
|
||||
import java.net.InetAddress;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
/* A class to query geolocation info from IP addresses. */
|
||||
public class Geolocation {
|
||||
@@ -109,7 +110,7 @@ public class Geolocation {
|
||||
|
||||
@SuppressLint("SimpleDateFormat")
|
||||
public static boolean downloadDb(Context ctx) {
|
||||
String dateid = new SimpleDateFormat("yyyy-MM").format(new Date());
|
||||
String dateid = new SimpleDateFormat("yyyy-MM", Locale.US).format(new Date());
|
||||
String country_url = "https://download.db-ip.com/free/dbip-country-lite-" + dateid + ".mmdb.gz";
|
||||
String asn_url = "https://download.db-ip.com/free/dbip-asn-lite-" + dateid + ".mmdb.gz";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user