Merge "Use RouteInfo API constructor in VpnService" am: 6b501d8acf

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1593771

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8acb1dcc97798145c6f25746ebad8cb8c17ad348
This commit is contained in:
Treehugger Robot
2021-02-23 22:05:00 +00:00
committed by Automerger Merge Worker

View File

@@ -596,7 +596,8 @@ public class VpnService extends Service {
}
}
}
mRoutes.add(new RouteInfo(new IpPrefix(address, prefixLength), null));
mRoutes.add(new RouteInfo(new IpPrefix(address, prefixLength), null, null,
RouteInfo.RTN_UNICAST));
mConfig.updateAllowedFamilies(address);
return this;
}