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

Commit b31db0aa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "server: Treat non-default route as host route"

parents a6ff435a 44091299
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
/*
 * Copyright (C) 2007 The Android Open Source Project
 * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
 * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
 *
 * Not a Contribution. Apache license notifications and license are
 * retained for attribution purposes only.
@@ -1932,7 +1932,9 @@ public class NetworkManagementService extends INetworkManagementService.Stub
        cmd.appendArg(iface);
        cmd.appendArg(metric);

        if (route.isHostRoute()) {
        // If route is not default then
        // implicitly treat it as a host route
        if (!route.isDefaultRoute()) {
            cmd.appendArg(route.getDestination().getAddress().getHostAddress());
        }