read proper settings in upnpdiscovery

This commit is contained in:
Michael Zanetti 2017-08-03 18:18:25 +02:00
parent 424150dc8a
commit 101ddc2331

View File

@ -141,9 +141,12 @@ void UpnpDiscovery::respondToSearchRequest(QHostAddress host, int port)
QByteArray uuid = globalSettings.value("uuid", QUuid()).toByteArray();
globalSettings.endGroup();
globalSettings.beginGroup("SSL");
bool useSsl = globalSettings.value("enabled", true).toBool();
globalSettings.endGroup();
globalSettings.beginGroup("WebServer");
int serverPort = globalSettings.value("port", 3333).toInt();
bool useSsl = globalSettings.value("https", false).toBool();
globalSettings.endGroup();
foreach (const QNetworkInterface &interface, QNetworkInterface::allInterfaces()) {