Merge "Prevent going through unnecessary networks"
This commit is contained in:
@@ -2761,7 +2761,10 @@ public class Vpn {
|
|||||||
final LinkProperties lp = cm.getLinkProperties(network);
|
final LinkProperties lp = cm.getLinkProperties(network);
|
||||||
if (lp != null && lp.getAllInterfaceNames().contains(mOuterInterface)) {
|
if (lp != null && lp.getAllInterfaceNames().contains(mOuterInterface)) {
|
||||||
final NetworkInfo networkInfo = cm.getNetworkInfo(network);
|
final NetworkInfo networkInfo = cm.getNetworkInfo(network);
|
||||||
if (networkInfo != null) mOuterConnection.set(networkInfo.getType());
|
if (networkInfo != null) {
|
||||||
|
mOuterConnection.set(networkInfo.getType());
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user