From 8bb2e98b90e3181e7c32d2775c0bbfcaabd2a101 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sun, 19 Jul 2015 14:45:47 +0800 Subject: [PATCH] Fix localhost address (::ffff:127.0.0.1) is not recognized when connecting to WebUI --- src/webui/abstractwebapplication.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webui/abstractwebapplication.cpp b/src/webui/abstractwebapplication.cpp index 0adefc450..34323573a 100644 --- a/src/webui/abstractwebapplication.cpp +++ b/src/webui/abstractwebapplication.cpp @@ -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(); }