Commit 6bcbb416 authored by Karl Heyes's avatar Karl Heyes

make sure we report the correct port for m3u and YP when not using the default port

svn path=/icecast/trunk/icecast/; revision=14318
parent eba43147
......@@ -358,7 +358,6 @@ static void _set_defaults(ice_config_t *configuration)
configuration->dir_list = NULL;
configuration->hostname = (char *)xmlCharStrdup (CONFIG_DEFAULT_HOSTNAME);
configuration->mimetypes_fn = (char *)xmlCharStrdup (MIMETYPESFILE);
configuration->port = 8000;
configuration->master_server = NULL;
configuration->master_server_port = 0;
configuration->master_update_interval = CONFIG_MASTER_UPDATE_INTERVAL;
......@@ -491,6 +490,8 @@ static void _parse_root(xmlDocPtr doc, xmlNodePtr node,
configuration->listen_sock = config_clear_listener (configuration->listen_sock);
configuration->listen_sock_count--;
}
if (configuration->port == 0)
configuration->port = 8000;
}
static void _parse_limits(xmlDocPtr doc, xmlNodePtr node,
......
Markdown is supported
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