Merge "Send exclude local routes value to netd for VPN network"

This commit is contained in:
Chiachang Wang
2022-01-26 02:09:35 +00:00
committed by Gerrit Code Review

View File

@@ -4046,7 +4046,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
config = new NativeNetworkConfig(nai.network.getNetId(), NativeNetworkType.VIRTUAL,
INetd.PERMISSION_NONE,
(nai.networkAgentConfig == null || !nai.networkAgentConfig.allowBypass),
getVpnType(nai), /*excludeLocalRoutes=*/ false);
getVpnType(nai), nai.networkAgentConfig.excludeLocalRouteVpn);
} else {
config = new NativeNetworkConfig(nai.network.getNetId(), NativeNetworkType.PHYSICAL,
getNetworkPermission(nai.networkCapabilities), /*secure=*/ false,