mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
IIS: Creates IIS_VERSION definition
This definition is currently used in two different circumstances: Report with accuracy that the server is an IIS (status call), and also show the amount of loaded remote rules on the windows logs. Different from Apache which loads the rules twice, IIS just do it once.
This commit is contained in:
@@ -349,7 +349,11 @@ int DSOLOCAL msc_beacon_string (char *beacon_string, int beacon_string_max_len)
|
||||
#endif
|
||||
libxml = LIBXML_DOTTED_VERSION;
|
||||
modsec = MODSEC_VERSION;
|
||||
#ifdef IIS_VERSION
|
||||
apache = "IIS";
|
||||
#else
|
||||
apache = real_server_signature;
|
||||
#endif
|
||||
|
||||
/* 6 represents: strlen("(null)") */
|
||||
beacon_string_len = (modsec ? strlen(modsec) : 6) +
|
||||
|
Reference in New Issue
Block a user