Merge "Use RouteInfo API constructor in VpnService"

This commit is contained in:
Treehugger Robot
2021-02-22 04:05:51 +00:00
committed by Gerrit Code Review

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;
}