mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Add WebUi\Address config option
This commit is contained in:
parent
bd07cb91bb
commit
8cd243b06b
8 changed files with 63 additions and 40 deletions
|
@ -463,6 +463,16 @@ void Preferences::setServerDomains(const QString &str)
|
|||
setValue("Preferences/WebUI/ServerDomains", str);
|
||||
}
|
||||
|
||||
QString Preferences::getWebUiAddress() const
|
||||
{
|
||||
return value("Preferences/WebUI/Address", "*").toString().trimmed();
|
||||
}
|
||||
|
||||
void Preferences::setWebUiAddress(const QString &addr)
|
||||
{
|
||||
setValue("Preferences/WebUI/Address", addr.trimmed());
|
||||
}
|
||||
|
||||
quint16 Preferences::getWebUiPort() const
|
||||
{
|
||||
return value("Preferences/WebUI/Port", 8080).toInt();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue