mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-15 17:12:14 +03:00
Merge pull request #3298 from airween/v3/sethostnamefix
Fix m_requestHostName variable behavior
This commit is contained in:
@@ -227,7 +227,9 @@ int Transaction::processConnection(const char *client, int cPort,
|
||||
const char *server, int sPort) {
|
||||
m_clientIpAddress = client;
|
||||
m_serverIpAddress = server;
|
||||
m_requestHostName = server;
|
||||
if (m_requestHostName.empty() == true) {
|
||||
m_requestHostName = server;
|
||||
}
|
||||
this->m_clientPort = cPort;
|
||||
this->m_serverPort = sPort;
|
||||
ms_dbg(4, "Transaction context created.");
|
||||
|
||||
Reference in New Issue
Block a user