mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
Fix localhost address (::ffff:127.0.0.1) is not recognized when connecting to WebUI
This commit is contained in:
parent
5281593bb6
commit
8bb2e98b90
@ -316,7 +316,8 @@ void AbstractWebApplication::increaseFailedAttempts()
|
|||||||
bool AbstractWebApplication::isAuthNeeded()
|
bool AbstractWebApplication::isAuthNeeded()
|
||||||
{
|
{
|
||||||
return (env_.clientAddress != QHostAddress::LocalHost
|
return (env_.clientAddress != QHostAddress::LocalHost
|
||||||
&& env_.clientAddress != QHostAddress::LocalHostIPv6)
|
&& env_.clientAddress != QHostAddress::LocalHostIPv6
|
||||||
|
&& env_.clientAddress != QHostAddress("::ffff:127.0.0.1"))
|
||||||
|| Preferences::instance()->isWebUiLocalAuthEnabled();
|
|| Preferences::instance()->isWebUiLocalAuthEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user