Merge "Use API RouteInfo constructor in VpnConfig" am: 78426b28cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1552496 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I1c4169ff740b8cb67bae6b85e17a79fc39e40247
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user