diff options
Diffstat (limited to 'http/http_connection.hpp')
-rw-r--r-- | http/http_connection.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp index ba4af3f747..2a6afeb635 100644 --- a/http/http_connection.hpp +++ b/http/http_connection.hpp @@ -94,11 +94,13 @@ class Connection : // don't require auth if (preverified) { - if (!req) + boost::asio::ip::address ipAddress; + if (getClientIp(ipAddress)) { - return false; + return true; } - mtlsSession = verifyMtlsUser(req->ipAddress, ctx); + + mtlsSession = verifyMtlsUser(ipAddress, ctx); if (mtlsSession) { BMCWEB_LOG_DEBUG("{} Generating TLS session: {}", logPtr(this), |