support of dynamic/128 and %any6
This commit is contained in:
@@ -453,6 +453,10 @@ host_t *host_create_from_dns(char *string, int af, u_int16_t port)
|
||||
{
|
||||
return host_create_any(af ? af : AF_INET);
|
||||
}
|
||||
if (streq(string, "%any6"))
|
||||
{
|
||||
return host_create_any(af ? af : AF_INET6);
|
||||
}
|
||||
else if (strchr(string, ':'))
|
||||
{
|
||||
/* gethostbyname does not like IPv6 addresses - fallback */
|
||||
|
||||
@@ -1046,6 +1046,7 @@ identification_t *identification_create_from_string(char *string)
|
||||
else if (strchr(string, '@') == NULL)
|
||||
{
|
||||
if (streq(string, "%any")
|
||||
|| streq(string, "%any6")
|
||||
|| streq(string, "0.0.0.0")
|
||||
|| streq(string, "*")
|
||||
|| streq(string, "::")
|
||||
|
||||
Reference in New Issue
Block a user