mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Improves the accuracy of version identification on status calls
Trying to differentiate among IIS, Apache, NGINX, and Standalone builds.
This commit is contained in:
@@ -349,8 +349,10 @@ int DSOLOCAL msc_beacon_string (char *beacon_string, int beacon_string_max_len)
|
||||
#endif
|
||||
libxml = LIBXML_DOTTED_VERSION;
|
||||
modsec = MODSEC_VERSION;
|
||||
#ifdef IIS_VERSION
|
||||
#ifdef VERSION_IIS
|
||||
apache = "IIS";
|
||||
#elif VERSION_NGINX
|
||||
apache = "nginx";
|
||||
#else
|
||||
apache = real_server_signature;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user