Complain about missing %defaultroute support only if one is actually used

This commit is contained in:
Martin Willi
2009-09-16 13:27:49 +02:00
parent b538b606da
commit 075448fbc8
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -245,6 +245,10 @@ kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token
end->addr = cfg->defaultroute.addr;
end->nexthop = cfg->defaultroute.nexthop;
}
else if (!cfg->defaultroute.supported)
{
plog("%%defaultroute not supported, fallback to %%any");
}
else
{
plog("# default route not known: %s=%s", name, value);