mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
Turn off port forwarding of WebUI by default for GUI users
This commit is contained in:
parent
73f762250c
commit
c7d10dc091
@ -451,7 +451,11 @@ void Preferences::setWebUiPort(quint16 port)
|
|||||||
|
|
||||||
bool Preferences::useUPnPForWebUIPort() const
|
bool Preferences::useUPnPForWebUIPort() const
|
||||||
{
|
{
|
||||||
|
#ifdef DISABLE_GUI
|
||||||
return value("Preferences/WebUI/UseUPnP", true).toBool();
|
return value("Preferences/WebUI/UseUPnP", true).toBool();
|
||||||
|
#else
|
||||||
|
return value("Preferences/WebUI/UseUPnP", false).toBool();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preferences::setUPnPForWebUIPort(bool enabled)
|
void Preferences::setUPnPForWebUIPort(bool enabled)
|
||||||
|
Loading…
Reference in New Issue
Block a user