mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +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:
@@ -768,9 +768,16 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t
|
||||
* Checking if it is not the first time that we are in this very function.
|
||||
* We want to show the messages below during the start and the reload.
|
||||
*
|
||||
* Turns out that IIS version does not hit it twice, thus, we have to show
|
||||
* the message in the first (and unique) opportunity.
|
||||
*/
|
||||
#ifdef VERSION_IIS
|
||||
if (first_time == 1)
|
||||
{
|
||||
#else
|
||||
if (first_time != 1)
|
||||
{
|
||||
#endif
|
||||
#ifdef WITH_REMOTE_RULES
|
||||
if (remote_rules_server != NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user