1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix: Do not use wildcard addresses for hostname generation

See: #2365
This commit is contained in:
Philipp Schafft 2020-10-11 15:53:51 +00:00
parent b4496ab6cc
commit 33c9d81cb6

View File

@ -1025,7 +1025,8 @@ ssize_t client_get_baseurl(client_t *client, listensocket_t *listensocket, char
if (!host && listensocket) {
listener = listensocket_get_listener(listensocket);
if (listener) {
host = listener->bind_address;
if (listener->bind_address && strncmp(listener->bind_address, "0.", 2) != 0 && strncmp(listener->bind_address, "::", 2) != 0)
host = listener->bind_address;
port = listener->port;
if (!client)
tlsmode = listener->tls;