Skip to content

Commit 2e5080f

Browse files
committed
don't dump rules if !debug case
1 parent 66a0c1e commit 2e5080f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngx_http_modsecurity_module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,9 @@ ngx_http_modsecurity_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
555555
return strdup(error);
556556
}
557557
}
558+
#if defined(MODSECURITY_DDEBUG) && (MODSECURITY_DDEBUG)
558559
msc_rules_dump(c->rules_set);
560+
#endif
559561
return NGX_CONF_OK;
560562
}
561563

0 commit comments

Comments
 (0)