Remove wrong conditional in Origin trustworthy check

It might block WebUI from logging in under specific network configurations.
This commit is contained in:
Chocobo1 2024-12-08 16:05:06 +08:00
commit c2978f6cab
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -783,10 +783,6 @@ bool WebApplication::isOriginTrustworthy() const
if (m_isHttpsEnabled) if (m_isHttpsEnabled)
return true; return true;
// client is on localhost
if (env().clientAddress.isLoopback())
return true;
return false; return false;
} }