mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
parent
39ee27785c
commit
344e47dcfb
8 changed files with 67 additions and 23 deletions
|
@ -626,6 +626,16 @@ void Preferences::setWebUiCSRFProtectionEnabled(bool enabled)
|
|||
setValue("Preferences/WebUI/CSRFProtection", enabled);
|
||||
}
|
||||
|
||||
bool Preferences::isWebUIHostHeaderValidationEnabled() const
|
||||
{
|
||||
return value("Preferences/WebUI/HostHeaderValidation", true).toBool();
|
||||
}
|
||||
|
||||
void Preferences::setWebUIHostHeaderValidationEnabled(const bool enabled)
|
||||
{
|
||||
setValue("Preferences/WebUI/HostHeaderValidation", enabled);
|
||||
}
|
||||
|
||||
bool Preferences::isWebUiHttpsEnabled() const
|
||||
{
|
||||
return value("Preferences/WebUI/HTTPS/Enabled", false).toBool();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue