mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 12:00:16 -07:00
Remove 'loopback address detection' helper function
It is not needed since `QHostAddress::isLoopback()` can do the job. PR #21259.
This commit is contained in:
parent
72feee6fdd
commit
fc82abe7f6
3 changed files with 1 additions and 9 deletions
|
@ -698,7 +698,7 @@ QString WebApplication::generateSid() const
|
|||
|
||||
bool WebApplication::isAuthNeeded()
|
||||
{
|
||||
if (!m_isLocalAuthEnabled && Utils::Net::isLoopbackAddress(m_clientAddress))
|
||||
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