mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-26 14:00:08 +00:00
Fix VPN check on KitKat and below
This commit is contained in:
1 parent
e9e332ff85
commit
371d96ea65
1 file changed
+1
-1
@@ -312,7 +312,7 @@ public class ComputerManagerService extends Service {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
NetworkInfo activeNetworkInfo = connMgr.getActiveNetworkInfo();
|
NetworkInfo activeNetworkInfo = connMgr.getActiveNetworkInfo();
|
||||||
if (activeNetworkInfo != null) {
|
if (activeNetworkInfo != null) {
|
||||||
return activeNetworkInfo.getType() == ConnectivityManager.TYPE_VPN;
|
return activeNetworkInfo.getType() == ConnectivityManager.TYPE_VPN;
|
||||||
|
|||||||
Reference in new issue
Block a user