mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user