Use of `<shoutcast-compat>` results in unexpected behaviour
When setting <shoutcast-mount>
within <listen-socket>
two sockets will be created:
- A normal one with the shoutcast mount set
- A second one at (
port
+ 1) with shoutcast mount set as ICY source port (<shoutcast-compat>
set).
However you can set <shoutcast-compat>
manually. In this case also two ports are opened at port
and port
+ 1 with both being identical in configuration.
The code uses the following condition to check if the extra socket must be created:
if (listener->shoutcast_mount) {
However I think it should be:
if (listener->shoutcast_mount && !listener->shoutcast_compat) {
This will prevent the listen socket on port
+ 1 to be created.