Disable UPnP for web UI by default

PR #18832.
This commit is contained in:
Vladimir Golovnev 2023-04-13 06:22:18 +03:00 committed by Vladimir Golovnev (Glassez)
parent 70a2d7bd58
commit 2b4fcda463
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -599,11 +599,7 @@ void Preferences::setWebUiPort(const quint16 port)
bool Preferences::useUPnPForWebUIPort() const
{
#ifdef DISABLE_GUI
return value(u"Preferences/WebUI/UseUPnP"_qs, true);
#else
return value(u"Preferences/WebUI/UseUPnP"_qs, false);
#endif
}
void Preferences::setUPnPForWebUIPort(const bool enabled)