karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

listener_add callback property 'listeners' empty #266

Closed franzwarning closed 4 years ago

franzwarning commented 4 years ago

Hi There,

I've noticed that the listeners property in the listener_add auth url callback is empty whenever the <mount-name> has any sort of regex (or *) in it. For example, this mount name reports the correct listeners:

<mount-name>/test.ogg</mount-name>
# output: 'listeners': ['0']

whereas this one reports the empty listeners:

<mount-name>/*.ogg</mount-name>
# output: 'listeners': ['']

I believe the issue stems here

Perhaps instead of auth->mount we can just use mount?

Thanks for the awesome repo. Would love to hear your thoughts!

karlheyes commented 4 years ago

This is now fixed. actually the 'mount' you referred to is the encoded requested mount which can include parameters so may also not find a match in stats. The actual setting was in auth_user.

karl.

franzwarning commented 4 years ago

Thx @karlheyes