Add country to fetch request

This commit is contained in:
M66B 2016-07-17 18:15:50 +02:00
parent 3d1dc57fe6
commit eb0552ad69
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import javax.net.ssl.HttpsURLConnection;
@ -461,6 +462,7 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> im
JSONObject json = new JSONObject();
json.put("type", "fetch");
json.put("country", Locale.getDefault().getCountry());
json.put("netguard", Util.getSelfVersionCode(context));
json.put("fingerprint", Util.getFingerprint(context));