summaryrefslogtreecommitdiff
path: root/common/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/config.cpp')
-rw-r--r--common/config.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/config.cpp b/common/config.cpp
index ff24976..1668369 100644
--- a/common/config.cpp
+++ b/common/config.cpp
@@ -15,17 +15,20 @@ using namespace upnp;
upnp::cConfig::cConfig()
: enabled(true)
, expertSettings(false)
-, useInternalWebserver(false)
, webServerPort(0)
, presentationURL("index.html")
+, useLive(false)
+, livePort(8008)
, maxContentLength(KB(20))
, announceMaxAge(1800)
, deviceUUID(tools::GenerateUUIDRandomly())
-, serviceURL("services/")
-, staticContentURL("http/")
, bindToAddress(true)
, address("0.0.0.0")
, port(0)
, databaseFile("metadata.db")
{
}
+
+void upnp::cConfig::GenerateNewDeviceUUID(){
+ deviceUUID = tools::GenerateUUIDRandomly();
+}