Add condition before set hostname; move setRequestHostName() before processConnection()

This commit is contained in:
Ervin Hegedus
2024-11-12 16:55:02 +01:00
parent ec506daaef
commit d422b36966
2 changed files with 7 additions and 5 deletions

View File

@@ -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.");