Make port optional config value, searching for unused port if necessary. Closes #110

This commit is contained in:
Ron Pedde
2006-05-24 04:19:44 +00:00
parent 88999e7d49
commit 41aabeeab9
4 changed files with 35 additions and 8 deletions

View File

@@ -408,7 +408,7 @@ int main(int argc, char *argv[]) {
/* start up the web server */
web_root = conf_alloc_string("general","web_root",NULL);
ws_config.web_root=web_root;
ws_config.port=conf_get_int("general","port",3689);
ws_config.port=conf_get_int("general","port",0);
DPRINTF(E_LOG,L_MAIN|L_WS,"Starting web server from %s on port %d\n",
ws_config.web_root, ws_config.port);