Commit e921a67b authored by Michael Smith's avatar Michael Smith
Browse files

create /icy_0 (and incrementing numbers) for incoming icy protocol connections

if the / mountpoint is taken

svn path=/trunk/icecast/; revision=4445
parent b2b618c6
......@@ -872,7 +872,18 @@ static void *_handle_connection(void *arg)
else if(httpp_parse_icy(parser, header, strlen(header))) {
/* TODO: Map incoming icy connections to /icy_0, etc. */
_handle_source_request(con, parser, "/");
char mount[20];
int i = 0;
strcpy(mount, "/");
while(source_find_mount(mount) != NULL) {
sprintf(mount, "/icy_%d", i++);
_handle_source_request(con, parser, mount);
else {
ERROR0("HTTP request parsing failed");
Supports Markdown
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