1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-03 05:44:14 +00:00

Fixed reloading on link properties changed

This commit is contained in:
M66B 2020-01-09 19:27:29 +01:00
parent 5b0307c258
commit f9462fc186

View file

@ -2474,7 +2474,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
List<InetAddress> dns = linkProperties.getDnsServers();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSinkhole.this);
if (prefs.getBoolean("reload_onconnectivity", false) ||
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) && !same(last_dns, dns)) {
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !same(last_dns, dns))) {
last_dns = dns;
Log.i(TAG, "Changed link properties=" + linkProperties);
reload("link properties changed", ServiceSinkhole.this, false);