1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-21 23:33:21 +00:00

Skip setting underlying network

This commit is contained in:
M66B 2024-09-01 10:56:06 +02:00
parent 51ad97a368
commit 89a57d6c5f

View file

@ -1239,7 +1239,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
ParcelFileDescriptor pfd = builder.establish();
// 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);
Network active = (cm == null ? null : cm.getActiveNetwork());
if (active != null) {