mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
client: Make auto_connect_localhost respect HAVE_IPv6 and OS_IS_WIN32
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/455>
This commit is contained in:
parent
eb1297f124
commit
fa0d30eee1
1 changed files with 3 additions and 0 deletions
|
|
@ -1027,7 +1027,10 @@ int pa_context_connect(
|
||||||
|
|
||||||
/* Add TCP/IP on the localhost */
|
/* Add TCP/IP on the localhost */
|
||||||
if (c->conf->auto_connect_localhost) {
|
if (c->conf->auto_connect_localhost) {
|
||||||
|
#if defined(HAVE_IPV6) && !defined(OS_IS_WIN32)
|
||||||
|
/* FIXME: pa_socket_client does not support IPv6 on Windows */
|
||||||
c->server_list = pa_strlist_prepend(c->server_list, "tcp6:[::1]");
|
c->server_list = pa_strlist_prepend(c->server_list, "tcp6:[::1]");
|
||||||
|
#endif
|
||||||
c->server_list = pa_strlist_prepend(c->server_list, "tcp4:127.0.0.1");
|
c->server_list = pa_strlist_prepend(c->server_list, "tcp4:127.0.0.1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue