mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-01-03 14:56:34 -05:00
the check for the public stream flag wasn't working correctly in all cases
svn path=/icecast/trunk/icecast/; revision=8100
This commit is contained in:
parent
1531b5a4c6
commit
82c116a72d
21
src/source.c
21
src/source.c
@ -494,15 +494,18 @@ static void source_init (source_t *source)
|
||||
config->hostname, config->port, source->mount);
|
||||
config_release_config();
|
||||
|
||||
/* maybe better in connection.c */
|
||||
if ((str = httpp_getvar(source->parser, "ice-public")))
|
||||
source->yp_public = atoi(str);
|
||||
if ((str = httpp_getvar(source->parser, "icy-pub")))
|
||||
source->yp_public = atoi(str);
|
||||
if ((str = httpp_getvar(source->parser, "icy-public")))
|
||||
source->yp_public = atoi(str);
|
||||
if (str == NULL)
|
||||
str = "0";
|
||||
do
|
||||
{
|
||||
if ((str = httpp_getvar(source->parser, "ice-public")))
|
||||
break;
|
||||
if ((str = httpp_getvar(source->parser, "icy-pub")))
|
||||
break;
|
||||
/* handle header from icecast v2 release */
|
||||
if ((str = httpp_getvar(source->parser, "icy-public")))
|
||||
break;
|
||||
str = "0";
|
||||
} while (0);
|
||||
source->yp_public = atoi (str);
|
||||
stats_event (source->mount, "public", str);
|
||||
|
||||
str = httpp_getvar(source->parser, "ice-audio-info");
|
||||
|
Loading…
Reference in New Issue
Block a user