1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

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 GitHub
parent b3e9c46eff
commit eaee38a19e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,11 +589,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)