mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-22 07:43:15 +00:00
Skip setting underlying network
This commit is contained in:
parent
51ad97a368
commit
89a57d6c5f
1 changed files with 1 additions and 1 deletions
|
@ -1239,7 +1239,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
|
||||||
ParcelFileDescriptor pfd = builder.establish();
|
ParcelFileDescriptor pfd = builder.establish();
|
||||||
|
|
||||||
// Set underlying network
|
// Set underlying network
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && false) {
|
||||||
ConnectivityManager cm = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
|
ConnectivityManager cm = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
|
||||||
Network active = (cm == null ? null : cm.getActiveNetwork());
|
Network active = (cm == null ? null : cm.getActiveNetwork());
|
||||||
if (active != null) {
|
if (active != null) {
|
||||||
|
|
Loading…
Reference in a new issue