Skip to content

Commit 8da787a

Browse files
authored
Merge pull request #2424 from martinhsv/v3/master
Fix IP address logging in Section A
2 parents 995f22b + 8436c78 commit 8da787a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
v3.x.y - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- Fix IP address logging in Section A
5+
[Issue #2300 - @inaratech, @zavazingo, @martinhsv]
46
- Adds support to lua 5.4
57
[@zimmerle]
68
- GeoIP: switch to GEOIP_MEMORY_CACHE from GEOIP_INDEX_CACHE

src/transaction.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,9 +1522,9 @@ std::string Transaction::toOldAuditLogFormat(int parts,
15221522
strftime(tstr, 299, "[%d/%b/%Y:%H:%M:%S %z]", &timeinfo);
15231523
audit_log << tstr;
15241524
audit_log << " " << m_id->c_str();
1525-
audit_log << " " << this->m_clientIpAddress;
1525+
audit_log << " " << this->m_clientIpAddress->c_str();
15261526
audit_log << " " << this->m_clientPort;
1527-
audit_log << " " << m_serverIpAddress;
1527+
audit_log << " " << m_serverIpAddress->c_str();
15281528
audit_log << " " << this->m_serverPort;
15291529
audit_log << std::endl;
15301530

0 commit comments

Comments
 (0)