mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-07 10:58:09 +02:00
Windows _dbus_listen_tcp_socket: Use AF_UNSPEC if family is unspecified
Now that we cope with getting WSAEADDRNOTAVAIL when trying to listen on ::1 with IPv6 disabled, and gracefully fall back to only listening on 127.0.0.1, we can use AF_UNSPEC like the corresponding Unix code does. Reviewed-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61922
This commit is contained in:
parent
bbf1cb70a5
commit
98a5011b81
1 changed files with 1 additions and 1 deletions
|
|
@ -1704,7 +1704,7 @@ _dbus_listen_tcp_socket (const char *host,
|
|||
_DBUS_ZERO (hints);
|
||||
|
||||
if (!family)
|
||||
hints.ai_family = AF_INET;
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
else if (!strcmp(family, "ipv4"))
|
||||
hints.ai_family = AF_INET;
|
||||
else if (!strcmp(family, "ipv6"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue