aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'pingu_netlink.c')
-rw-r--r--pingu_netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pingu_netlink.c b/pingu_netlink.c
index 81fcad1..5c63a51 100644
--- a/pingu_netlink.c
+++ b/pingu_netlink.c
@@ -374,7 +374,8 @@ static int add_nexthops(struct nlmsghdr *nlh, size_t nlh_size,
case RTM_NEWROUTE:
host = pingu_host_find_by_iface(iface);
if ((!iface->balance) || iface->index == 0
- || (host != NULL && !host->status) || route == NULL)
+ || (host != NULL && host->status == PINGU_HOST_STATUS_OFFLINE)
+ || route == NULL)
continue;
iface->has_multipath = 1;
break;