mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Fix various minor bugs in per-mountpoint configs.
svn path=/trunk/icecast/; revision=4385
This commit is contained in:
parent
a169380258
commit
5252a14068
@ -361,6 +361,8 @@ static void _parse_mount(xmlDocPtr doc, xmlNodePtr node)
|
||||
else
|
||||
_configuration.mounts = mount;
|
||||
|
||||
mount->max_listeners = -1;
|
||||
|
||||
do {
|
||||
if (node == NULL) break;
|
||||
if (xmlIsBlankNode(node)) continue;
|
||||
|
@ -434,8 +434,10 @@ static int _check_source_pass(http_parser_t *parser, char *mount)
|
||||
mount_proxy *mountinfo = config_get_config()->mounts;
|
||||
while(mountinfo) {
|
||||
if(!strcmp(mountinfo->mountname, mount)) {
|
||||
pass = mountinfo->password;
|
||||
user = mountinfo->username;
|
||||
if(mountinfo->password)
|
||||
pass = mountinfo->password;
|
||||
if(mountinfo->username)
|
||||
user = mountinfo->username;
|
||||
break;
|
||||
}
|
||||
mountinfo = mountinfo->next;
|
||||
@ -803,7 +805,6 @@ static void _handle_get_request(connection_t *con,
|
||||
return;
|
||||
}
|
||||
global.clients++;
|
||||
source->listeners++;
|
||||
global_unlock();
|
||||
|
||||
client->format_data = source->format->create_client_data(
|
||||
|
@ -74,6 +74,7 @@ source_t *source_create(client_t *client, connection_t *con,
|
||||
src->running = 1;
|
||||
src->num_yp_directories = 0;
|
||||
src->listeners = 0;
|
||||
src->max_listeners = -1;
|
||||
src->send_return = 0;
|
||||
src->dumpfilename = NULL;
|
||||
src->dumpfile = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user