mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-23 06:35:24 -07:00
Fix localhost address (::ffff:127.0.0.1) is not recognized when connecting to WebUI
This commit is contained in:
parent
01d8b24982
commit
f8cb9d09f6
1 changed files with 2 additions and 1 deletions
|
@ -316,7 +316,8 @@ void AbstractWebApplication::increaseFailedAttempts()
|
|||
bool AbstractWebApplication::isAuthNeeded()
|
||||
{
|
||||
return (env_.clientAddress != QHostAddress::LocalHost
|
||||
&& env_.clientAddress != QHostAddress::LocalHostIPv6)
|
||||
&& env_.clientAddress != QHostAddress::LocalHostIPv6
|
||||
&& env_.clientAddress != QHostAddress("::ffff:127.0.0.1"))
|
||||
|| Preferences::instance()->isWebUiLocalAuthEnabled();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue