mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-18 18:42:46 +00:00
Fix VPN check on KitKat and below
This commit is contained in:
parent
e9e332ff85
commit
371d96ea65
@ -312,7 +312,7 @@ public class ComputerManagerService extends Service {
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
NetworkInfo activeNetworkInfo = connMgr.getActiveNetworkInfo();
|
||||
if (activeNetworkInfo != null) {
|
||||
return activeNetworkInfo.getType() == ConnectivityManager.TYPE_VPN;
|
||||
|
Loading…
x
Reference in New Issue
Block a user