mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
Fix typo in WebApplication::isAuthNeeded()
If we want local auth without username/password (m_isLocalAuthEnabled is set) and client address is loopback, we should return false from WebApplication::isAuthNeeded().
This commit is contained in:
parent
68ecb13d14
commit
fb0818eec4
1 changed files with 1 additions and 1 deletions
|
@ -700,7 +700,7 @@ QString WebApplication::generateSid() const
|
|||
|
||||
bool WebApplication::isAuthNeeded()
|
||||
{
|
||||
if (!m_isLocalAuthEnabled && m_clientAddress.isLoopback())
|
||||
if (m_isLocalAuthEnabled && m_clientAddress.isLoopback())
|
||||
return false;
|
||||
if (m_isAuthSubnetWhitelistEnabled && Utils::Net::isIPInSubnets(m_clientAddress, m_authSubnetWhitelist))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue