mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-16 00:00:37 -04:00
host: print %#H format specifiers not as %any, but with the port
This commit is contained in:
parent
344a4e54be
commit
7749eb0d2a
@ -111,7 +111,7 @@ int host_printf_hook(printf_hook_data_t *data, printf_hook_spec_t *spec,
|
|||||||
{
|
{
|
||||||
snprintf(buffer, sizeof(buffer), "(null)");
|
snprintf(buffer, sizeof(buffer), "(null)");
|
||||||
}
|
}
|
||||||
else if (is_anyaddr(this) && !spec->plus)
|
else if (is_anyaddr(this) && !spec->plus && !spec->hash)
|
||||||
{
|
{
|
||||||
snprintf(buffer, sizeof(buffer), "%%any%s",
|
snprintf(buffer, sizeof(buffer), "%%any%s",
|
||||||
this->address.sa_family == AF_INET6 ? "6" : "");
|
this->address.sa_family == AF_INET6 ? "6" : "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user