fix mixup in upnp discovery response

This commit is contained in:
Michael Zanetti 2017-09-15 23:25:05 +02:00
parent 314129a76f
commit 651e0bd3d8

View File

@ -598,9 +598,9 @@ QByteArray WebServer::createServerXmlDocument(QHostAddress address)
}
if (tcpServerFound) {
if (tcpServerConfiguration.sslEnabled) {
writer.writeTextElement("guhRpcURL", "guh://" + address.toString() + ":" + QString::number(tcpServerConfiguration.port));
} else {
writer.writeTextElement("guhRpcURL", "guhs://" + address.toString() + ":" + QString::number(tcpServerConfiguration.port));
} else {
writer.writeTextElement("guhRpcURL", "guh://" + address.toString() + ":" + QString::number(tcpServerConfiguration.port));
}
}