--- a/src/mediaserver/cdplugins/plgwithslave.cxx
+++ b/src/mediaserver/cdplugins/plgwithslave.cxx
@@ -18,22 +18,20 @@
#include "plgwithslave.hxx"
-#include <fcntl.h>
-
#include <string>
#include <vector>
#include <sstream>
#include <string.h>
+#include <fcntl.h>
#include <upnp/upnp.h>
#include <microhttpd.h>
#include <json/json.h>
+#include <libupnpp/log.hxx>
#include "cmdtalk.h"
#include "pathut.h"
#include "smallut.h"
-#include "libupnpp/log.hxx"
#include "main.hxx"
-#include "conftree.h"
using namespace std;
using namespace std::placeholders;
@@ -190,7 +188,7 @@
return true;
}
- int port = 49149;
+ int port = CDPluginServices::default_microhttpport();
string sport;
if (plg->m_services->config_get("plgmicrohttpport", sport)) {
port = atoi(sport.c_str());