mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 06:09:03 +03:00
actions: Compute the rule association during rules load
This commit is contained in:
@@ -343,7 +343,6 @@ int Transaction::processConnection(const char *client, int cPort,
|
||||
ms_dbg(4, "Transaction context created.");
|
||||
ms_dbg(4, "Starting phase CONNECTION. (SecRules 0)");
|
||||
|
||||
|
||||
m_variableRemoteHost.set(*m_clientIpAddress.get(), m_variableOffset);
|
||||
m_variableUniqueID.set(*m_id.get(), m_variableOffset);
|
||||
m_variableRemoteAddr.set(*m_clientIpAddress.get(), m_variableOffset);
|
||||
@@ -1494,7 +1493,7 @@ std::string Transaction::toOldAuditLogFormatIndex(const std::string &filename,
|
||||
/** TODO: Check variable */
|
||||
variables::RemoteUser *r = new variables::RemoteUser("REMOTE_USER");
|
||||
std::vector<const VariableValue *> l;
|
||||
r->evaluate(this, NULL, &l);
|
||||
r->evaluate(this, &l);
|
||||
delete r;
|
||||
|
||||
ss << utils::string::dash_if_empty(
|
||||
|
||||
Reference in New Issue
Block a user