diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2018-03-10 11:23:59 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2018-03-12 18:37:54 +0100 |
commit | 98a5011b8144f276867deff38390041939ac7ebd (patch) | |
tree | e235030e8e68084aae16a4b943d172a9871a6ce7 /dbus/dbus-sysdeps-win.c | |
parent | bbf1cb70a50c7be00ad3ff490b0d03711e03dc10 (diff) | |
download | dbus-98a5011b8144f276867deff38390041939ac7ebd.tar.gz |
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
Diffstat (limited to 'dbus/dbus-sysdeps-win.c')
-rw-r--r-- | dbus/dbus-sysdeps-win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 9151ca30..e23c0caa 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -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")) |