mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Web UI code clean up
This commit is contained in:
parent
28d1671bb8
commit
1038376cdb
@ -96,7 +96,7 @@ HttpServer::HttpServer(int msec, QObject* parent) : QTcpServer(parent),
|
|||||||
|
|
||||||
m_username = pref.getWebUiUsername().toLocal8Bit();
|
m_username = pref.getWebUiUsername().toLocal8Bit();
|
||||||
m_passwordSha1 = pref.getWebUiPassword().toLocal8Bit();
|
m_passwordSha1 = pref.getWebUiPassword().toLocal8Bit();
|
||||||
m_localAuth = pref.isWebUiLocalAuthEnabled();
|
m_localAuthEnabled = pref.isWebUiLocalAuthEnabled();
|
||||||
|
|
||||||
// HTTPS-related
|
// HTTPS-related
|
||||||
#ifndef QT_NO_OPENSSL
|
#ifndef QT_NO_OPENSSL
|
||||||
@ -331,9 +331,9 @@ EventManager* HttpServer::eventManager() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HttpServer::setlocalAuthEnabled(bool enabled) {
|
void HttpServer::setlocalAuthEnabled(bool enabled) {
|
||||||
m_localAuth = enabled;
|
m_localAuthEnabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HttpServer::isLocalAuthEnabled() const {
|
bool HttpServer::isLocalAuthEnabled() const {
|
||||||
return m_localAuth;
|
return m_localAuthEnabled;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ private:
|
|||||||
EventManager *m_eventManager;
|
EventManager *m_eventManager;
|
||||||
QTimer m_timer;
|
QTimer m_timer;
|
||||||
QHash<QString, int> m_clientFailedAttempts;
|
QHash<QString, int> m_clientFailedAttempts;
|
||||||
bool m_localAuth;
|
bool m_localAuthEnabled;
|
||||||
#ifndef QT_NO_OPENSSL
|
#ifndef QT_NO_OPENSSL
|
||||||
bool m_https;
|
bool m_https;
|
||||||
QSslCertificate m_certificate;
|
QSslCertificate m_certificate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user