Merge pull request #2424 from martinhsv/v3/master

Fix IP address logging in Section A
This commit is contained in:
martinhsv 2020-10-19 09:09:05 -04:00 committed by GitHub
commit 8da787a390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
v3.x.y - YYYY-MMM-DD (to be released)
-------------------------------------
- Fix IP address logging in Section A
[Issue #2300 - @inaratech, @zavazingo, @martinhsv]
- Adds support to lua 5.4
[@zimmerle]
- GeoIP: switch to GEOIP_MEMORY_CACHE from GEOIP_INDEX_CACHE

View File

@ -1522,9 +1522,9 @@ std::string Transaction::toOldAuditLogFormat(int parts,
strftime(tstr, 299, "[%d/%b/%Y:%H:%M:%S %z]", &timeinfo);
audit_log << tstr;
audit_log << " " << m_id->c_str();
audit_log << " " << this->m_clientIpAddress;
audit_log << " " << this->m_clientIpAddress->c_str();
audit_log << " " << this->m_clientPort;
audit_log << " " << m_serverIpAddress;
audit_log << " " << m_serverIpAddress->c_str();
audit_log << " " << this->m_serverPort;
audit_log << std::endl;