1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00

add check for header when relaying from v2.0

svn path=/icecast/trunk/icecast/; revision=8098
This commit is contained in:
Karl Heyes 2004-10-25 18:51:45 +00:00
parent a52caeb2b0
commit 8aaf433aa4

View File

@ -499,6 +499,8 @@ static void source_init (source_t *source)
source->yp_public = atoi(str); source->yp_public = atoi(str);
if ((str = httpp_getvar(source->parser, "icy-pub"))) if ((str = httpp_getvar(source->parser, "icy-pub")))
source->yp_public = atoi(str); source->yp_public = atoi(str);
if ((str = httpp_getvar(source->parser, "icy-public")))
source->yp_public = atoi(str);
if (str == NULL) if (str == NULL)
str = "0"; str = "0";
stats_event (source->mount, "public", str); stats_event (source->mount, "public", str);