Commit 8aaf433a authored by Karl Heyes's avatar Karl Heyes

add check for header when relaying from v2.0

svn path=/icecast/trunk/icecast/; revision=8098
parent a52caeb2
...@@ -499,6 +499,8 @@ static void source_init (source_t *source) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment