fallback to family specific %any(6) if kernel lookup fails

This commit is contained in:
Martin Willi
2009-03-16 14:23:36 +00:00
parent 8065780f4a
commit 9717826f10
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -374,6 +374,10 @@ host_t *host_create_from_string(char *string, u_int16_t port)
{
return host_create_any(AF_INET);
}
if (streq(string, "%any6"))
{
return host_create_any(AF_INET6);
}
this = host_create_empty();
if (strchr(string, '.'))