mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 18:05:28 +03:00
Computes auditlog during rules load time
This commit is contained in:
@@ -176,6 +176,14 @@ int RuleMessage::getAccuracy() const {
|
||||
}
|
||||
|
||||
|
||||
bool RuleMessage::toBeAuditLog() const {
|
||||
if (m_rule) {
|
||||
return m_rule->isItToBeAuditLogged();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
std::string RuleMessage::getClientIpAddress() const {
|
||||
if (m_transaction) {
|
||||
return *m_transaction->m_clientIpAddress.get();
|
||||
|
||||
Reference in New Issue
Block a user