Fixed VPN only for Android 5/6

pull/207/head
M66B 3 years ago
parent 337db180f0
commit 6f3e293df2

@ -252,6 +252,8 @@ public class ConnectionHelper {
NetworkInfo ani = cm.getActiveNetworkInfo();
if (ani == null || !ani.isConnected())
return null;
if (vpn_only && !vpnActive(context))
return null;
return cm.isActiveNetworkMetered();
}

Loading…
Cancel
Save