Browse Source

Merge pull request #3456 from Chocobo1/localhost

Fix translated localhost address (::ffff:127.0.0.1) is not recognized
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
783f17ec4d
  1. 3
      src/webui/abstractwebapplication.cpp

3
src/webui/abstractwebapplication.cpp

@ -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…
Cancel
Save