Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f27155e authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN
Browse files

Use API RouteInfo constructor in VpnConfig

VpnConfig is planned to be outside of the connectivity module, so it
needs to use its public API and not private symbols.

Change the RouteInfo constructor to use the equivalent API version.

Bug: 174436414
Test: m
Change-Id: Iae264e9b50ec6e97ce39bd2bab6f22f5844bf270
parent 539dbe61
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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());
        }