mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
[Web UI] New option Web UI port UPNP. Closes #3358
This commit is contained in:
parent
948b2c0410
commit
3a44b94cc7
2 changed files with 20 additions and 12 deletions
|
@ -150,6 +150,7 @@ QByteArray prefjson::getPreferences()
|
|||
data["locale"] = pref->getLocale();
|
||||
// HTTP Server
|
||||
data["web_ui_port"] = pref->getWebUiPort();
|
||||
data["web_ui_upnp"] = pref->useUPnPForWebUIPort();
|
||||
data["use_https"] = pref->isWebUiHttpsEnabled();
|
||||
data["ssl_key"] = QString::fromLatin1(pref->getWebUiHttpsKey());
|
||||
data["ssl_cert"] = QString::fromLatin1(pref->getWebUiHttpsCertificate());
|
||||
|
@ -361,6 +362,8 @@ void prefjson::setPreferences(const QString& json)
|
|||
// HTTP Server
|
||||
if (m.contains("web_ui_port"))
|
||||
pref->setWebUiPort(m["web_ui_port"].toUInt());
|
||||
if (m.contains("web_ui_upnp"))
|
||||
pref->setUPnPForWebUIPort(m["web_ui_upnp"].toBool());
|
||||
if (m.contains("use_https"))
|
||||
pref->setWebUiHttpsEnabled(m["use_https"].toBool());
|
||||
#ifndef QT_NO_OPENSSL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue