Merge "Use API RouteInfo constructor in VpnConfig"

This commit is contained in:
Treehugger Robot
2021-01-18 05:08:58 +00:00
committed by Gerrit Code Review

View File

@@ -129,7 +129,7 @@ public class VpnConfig implements Parcelable {
String[] routes = routesStr.trim().split(" ");
for (String route : routes) {
//each route is ip/prefix
RouteInfo info = new RouteInfo(new IpPrefix(route), null);
RouteInfo info = new RouteInfo(new IpPrefix(route), null, null, RouteInfo.RTN_UNICAST);
this.routes.add(info);
updateAllowedFamilies(info.getDestination().getAddress());
}