From d25ca22f8a7fbf0738936bf24b147053c43cda70 Mon Sep 17 00:00:00 2001 From: Darren Wiebe Date: Sat, 29 Jul 2017 19:03:00 +0000 Subject: [PATCH 1/2] Added support to report number of listeners to listener_add url. --- src/auth_url.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/auth_url.c b/src/auth_url.c index 0b2bb86d7..9238dfede 100644 --- a/src/auth_url.c +++ b/src/auth_url.c @@ -73,6 +73,7 @@ #include "client.h" #include "cfgfile.h" #include "common/httpp/httpp.h" +#include "stats.h" #include "logging.h" #define CATMODULE "auth_url" @@ -277,6 +278,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; @@ -312,12 +314,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¤t_listeners=%s", + url->addaction, /* already escaped */ + server, port, client->con->id, mount, username, + password, ipaddr, user_agent, current_listeners); free(server); free(mount); From 4628ee9728ba86e5de36b98b2b5bf583b1c40ec0 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Tue, 7 Jun 2022 07:18:29 -0700 Subject: [PATCH 2/2] Update git url. The readme referred to the old git.xiph.org server, which is no longer online. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 87570c8c9..3ede1b8fa 100644 --- a/README.md +++ b/README.md @@ -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.