mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-29 04:25:55 -04:00
added a warning in case mount of type default is defined but a mountname is set
svn path=/icecast/trunk/icecast/; revision=18909
This commit is contained in:
parent
4ba4b3d1dd
commit
b4887fc581
@ -715,6 +715,10 @@ static void _parse_mount(xmlDocPtr doc, xmlNodePtr node,
|
|||||||
config_clear_mount (mount);
|
config_clear_mount (mount);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (mount->mountname != NULL && mount->mounttype == MOUNT_TYPE_DEFAULT)
|
||||||
|
{
|
||||||
|
WARN1("Default mount %s has mountpoint set. This is an unoffical feature and should not be used.", mount->mountname);
|
||||||
|
}
|
||||||
if (mount->auth)
|
if (mount->auth)
|
||||||
mount->auth->mount = strdup ((char *)mount->mountname);
|
mount->auth->mount = strdup ((char *)mount->mountname);
|
||||||
while(current) {
|
while(current) {
|
||||||
|
Loading…
Reference in New Issue
Block a user