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:
parent
5b0307c258
commit
f9462fc186
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue