summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/route/route_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/route_obj.c b/lib/route/route_obj.c
index 7abb58c..812d7ad 100644
--- a/lib/route/route_obj.c
+++ b/lib/route/route_obj.c
@@ -1026,7 +1026,7 @@ int rtnl_route_guess_scope(struct rtnl_route *route)
* is not directly connected
*/
nl_list_for_each_entry(nh, &route->rt_nexthops, rtnh_list) {
- if (nh->rtnh_gateway)
+ if (nh->rtnh_gateway || nh->rtnh_via)
return RT_SCOPE_UNIVERSE;
}
}