mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-03 05:44:14 +00:00
Revert "Drop validated requirement for connectivity changes"
This reverts commit 0a750f98eb
.
This commit is contained in:
parent
114102942e
commit
c2b60e5163
1 changed files with 1 additions and 1 deletions
|
@ -2492,7 +2492,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
|||
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
NetworkRequest.Builder builder = new NetworkRequest.Builder();
|
||||
builder.addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET);
|
||||
//builder.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED);
|
||||
builder.addCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED);
|
||||
|
||||
ConnectivityManager.NetworkCallback nc = new ConnectivityManager.NetworkCallback() {
|
||||
private Boolean last_connected = null;
|
||||
|
|
Loading…
Reference in a new issue