Skip to content

Commit c931124

Browse files
committed
modsecurity: simply use nginx version for whoami
1 parent 43241ef commit c931124

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

src/ngx_http_modsecurity.h

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,7 @@
2727
#include <modsecurity/rules_set.h>
2828

2929

30-
/**
31-
* TAG_NUM:
32-
*
33-
* Alpha - 001
34-
* Beta - 002
35-
* Dev - 010
36-
* Rc1 - 051
37-
* Rc2 - 052
38-
* ... - ...
39-
* Release- 100
40-
*
41-
*/
42-
43-
#define MODSECURITY_NGINX_MAJOR "1"
44-
#define MODSECURITY_NGINX_MINOR "0"
45-
#define MODSECURITY_NGINX_PATCHLEVEL "1"
46-
#define MODSECURITY_NGINX_TAG ""
47-
#define MODSECURITY_NGINX_TAG_NUM "100"
48-
49-
#define MODSECURITY_NGINX_VERSION MODSECURITY_NGINX_MAJOR "." \
50-
MODSECURITY_NGINX_MINOR "." MODSECURITY_NGINX_PATCHLEVEL \
51-
MODSECURITY_NGINX_TAG
52-
53-
#define MODSECURITY_NGINX_VERSION_NUM MODSECURITY_NGINX_MAJOR \
54-
MODSECURITY_NGINX_MINOR MODSECURITY_NGINX_PATCHLEVEL \
55-
MODSECURITY_NGINX_TAG_NUM
56-
57-
#define MODSECURITY_NGINX_WHOAMI "ModSecurity-nginx v" \
58-
MODSECURITY_NGINX_VERSION
30+
#define MODSECURITY_NGINX_WHOAMI "ModSecurity-nginx v" NGINX_VERSION
5931

6032

6133
typedef struct {

0 commit comments

Comments
 (0)