mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
FEATURE: Added option to bypass Web UI authentication for localhost
This commit is contained in:
@@ -655,6 +655,14 @@ public:
|
||||
setValue("Preferences/WebUI/Enabled", enabled);
|
||||
}
|
||||
|
||||
void setWebUiLocalAuthEnabled(bool enabled) {
|
||||
setValue("Preferences/WebUI/LocalHostAuth", enabled);
|
||||
}
|
||||
|
||||
bool isWebUiLocalAuthEnabled() const {
|
||||
return value("Preferences/WebUI/LocalHostAuth", true).toBool();
|
||||
}
|
||||
|
||||
quint16 getWebUiPort() const {
|
||||
return value("Preferences/WebUI/Port", 8080).toInt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user