Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ This is the typical procedure if you download the tar file.

If you retrive the code from Git, make sure to clone recursively:

git clone --recursive https://git.xiph.org/icecast-server.git
git clone --recursive https://gitlab.xiph.org/xiph/icecast-server.git

After that, create the configure script by running: `./autogen.sh`.
Now you can just follow the steps mentioned above.
Expand Down
14 changes: 9 additions & 5 deletions src/auth_url.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
#include "cfgfile.h"
#include "connection.h"
#include "common/httpp/httpp.h"
#include "stats.h"

#include "logging.h"
#define CATMODULE "auth_url"
Expand Down Expand Up @@ -457,6 +458,7 @@ static auth_result url_add_client(auth_client *auth_user)
*next_header;
const char *header_val;
char *header_valesc;
char *current_listeners;

if (url->addurl == NULL)
return AUTH_OK;
Expand Down Expand Up @@ -492,12 +494,14 @@ static auth_result url_add_client(auth_client *auth_user)
mount = util_url_escape(mountreq);
ipaddr = util_url_escape(client->con->ip);

current_listeners = stats_get_value(auth->mount, "listeners");

post_offset = snprintf(post, sizeof (post),
"action=%s&server=%s&port=%d&client=%lu&mount=%s"
"&user=%s&pass=%s&ip=%s&agent=%s",
url->addaction, /* already escaped */
server, port, client->con->id, mount, username,
password, ipaddr, user_agent);
"action=%s&server=%s&port=%d&client=%lu&mount=%s"
"&user=%s&pass=%s&ip=%s&agent=%s&current_listeners=%s",
url->addaction, /* already escaped */
server, port, client->con->id, mount, username,
password, ipaddr, user_agent, current_listeners);

free(server);
free(mount);
Expand Down