Merge branch 'master' of github.com:M66B/NetGuard

This commit is contained in:
M66B 2020-08-24 12:00:38 +02:00
commit b6dc1f561c
2 changed files with 5 additions and 2 deletions

View File

@ -9,10 +9,10 @@ android {
defaultConfig {
applicationId = "eu.faircode.netguard"
versionName = "2.286"
versionName = "2.287"
minSdkVersion 22
targetSdkVersion 30
versionCode = 2020081601
versionCode = 2020081801
archivesBaseName = "NetGuard-v$versionName"
externalNativeBuild {

View File

@ -62,6 +62,9 @@ public class ServiceExternal extends IntentService {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
String hosts_url = prefs.getString("hosts_url", null);
if ("https://www.netguard.me/hosts".equals(hosts_url))
hosts_url = "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts";
File tmp = new File(getFilesDir(), "hosts.tmp");
File hosts = new File(getFilesDir(), "hosts.txt");