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:
@@ -30,6 +30,9 @@ int main (int argc, char **argv)
|
||||
|
||||
modsec = msc_init();
|
||||
|
||||
msc_set_connector_info(modsec, "ModSecurity-test v0.0.1-alpha (Simple " \
|
||||
"example on how to use ModSecurity API");
|
||||
|
||||
rules = msc_create_rules_set();
|
||||
msc_rules_add_file(rules, main_rule_uri);
|
||||
|
||||
|
Reference in New Issue
Block a user