Merge "Set legacy type for VPN"

This commit is contained in:
Lucas Lin
2021-06-16 02:22:45 +00:00
committed by Gerrit Code Review

View File

@@ -1248,6 +1248,8 @@ public class Vpn {
updateState(DetailedState.CONNECTING, "agentConnect");
final NetworkAgentConfig networkAgentConfig = new NetworkAgentConfig.Builder()
.setLegacyType(ConnectivityManager.TYPE_VPN)
.setLegacyTypeName("VPN")
.setBypassableVpn(mConfig.allowBypass && !mLockdown)
.build();