mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
FEATURE: Added option to bypass Web UI authentication for localhost
This commit is contained in:
parent
79cdad47f1
commit
8b9971003d
41 changed files with 2772 additions and 2605 deletions
|
@ -86,6 +86,7 @@ HttpServer::HttpServer(int msec, QObject* parent) : QTcpServer(parent) {
|
|||
const Preferences pref;
|
||||
username = pref.getWebUiUsername().toLocal8Bit();
|
||||
password_ha1 = pref.getWebUiPassword().toLocal8Bit();
|
||||
m_localAuth = pref.isWebUiLocalAuthEnabled();
|
||||
connect(this, SIGNAL(newConnection()), this, SLOT(newHttpConnection()));
|
||||
manager = new EventManager(this);
|
||||
//add torrents
|
||||
|
@ -270,3 +271,13 @@ EventManager* HttpServer::eventManager() const
|
|||
{
|
||||
return manager;
|
||||
}
|
||||
|
||||
void HttpServer::setlocalAuthEnabled(bool enabled)
|
||||
{
|
||||
m_localAuth = enabled;
|
||||
}
|
||||
|
||||
bool HttpServer::isLocalAuthEnabled() const
|
||||
{
|
||||
return m_localAuth;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue