mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds method setConnectorInformation to ModSecurity class
For the purpose of log it is necessary for modsecurity to understand which 'connector' is consuming the API.
This commit is contained in:
@@ -74,6 +74,9 @@ int main(int argc, char *argv[]) {
|
||||
ModSecurity::Rules *rules;
|
||||
|
||||
modsec = new ModSecurity::ModSecurity();
|
||||
modsec->setConnectorInformation("ModSecurity-benchmark v0.0.1-alpha" \
|
||||
" (ModSecurity benchmark utility)");
|
||||
|
||||
rules = new ModSecurity::Rules();
|
||||
rules->loadFromUri(rules_file);
|
||||
|
||||
|
Reference in New Issue
Block a user