1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

Fix: Fixed usage of <shoutcast-compat> with <shoutcast-mount>.

Closes: #2363
This commit is contained in:
Philipp Schafft 2020-10-10 12:49:42 +00:00
parent ac6a7e047f
commit 3a6a7f6b5a

View File

@ -1957,7 +1957,7 @@ static void _parse_listen_socket(xmlDocPtr doc,
listener->next = configuration->listen_sock->next;
configuration->listen_sock->next = listener;
configuration->listen_sock_count++;
if (listener->shoutcast_mount) {
if (listener->shoutcast_mount && !listener->shoutcast_compat) {
listener_t *sc_port = calloc(1, sizeof(listener_t));
sc_port->port = listener->port+1;
sc_port->shoutcast_compat = 1;