mirror of https://github.com/M66B/NetGuard.git
Merge branch 'master' of github.com:M66B/NetGuard
This commit is contained in:
commit
b6dc1f561c
|
@ -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 {
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue