-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.patch
84 lines (71 loc) · 3.15 KB
/
nginx.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
--- nginx-1.19.2/src/http/ngx_http_header_filter_module.c 2020-08-11 10:52:30.000000000 -0400
+++ ../Khalegh-Backup/source/product/temp/nginx-1.18.0/src/http/ngx_http_header_filter_module.c 2020-08-19 12:34:10.015311438 -0400
@@ -10,7 +10,6 @@
#include <ngx_http.h>
#include <nginx.h>
-
static ngx_int_t ngx_http_header_filter_init(ngx_conf_t *cf);
static ngx_int_t ngx_http_header_filter(ngx_http_request_t *r);
@@ -46,9 +45,9 @@
};
-static u_char ngx_http_server_string[] = "Server: nginx" CRLF;
-static u_char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF;
-static u_char ngx_http_server_build_string[] = "Server: " NGINX_VER_BUILD CRLF;
+static u_char ngx_http_server_string[] = "Server: " IRON_FOX CRLF;
+static u_char ngx_http_server_full_string[] = "Server: " IRON_FOX_VERSION CRLF;
+static u_char ngx_http_server_build_string[] = "Server: " IRON_FOX_VERSION CRLF;
static ngx_str_t ngx_http_status_lines[] = {
--- nginx-1.19.2/src/core/nginx.h 2020-08-11 10:52:30.000000000 -0400
+++ ../Khalegh-Backup/source/product/temp/nginx-1.18.0/src/core/nginx.h 2020-08-19 12:34:09.999311199 -0400
@@ -9,9 +9,19 @@
#define _NGINX_H_INCLUDED_
-#define nginx_version 1019002
-#define NGINX_VERSION "1.19.2"
+#define IRON_FOX "ironfox"
+#define IRON_FOX_VERSION "0.1.0"
+
+
+#define nginx_version 1018000
+#define NGINX_VERSION "1.18.0"
+#define IRONFOX_VERSION "0.1.0"
+
+#ifdef IRON_FOX
+#define NGINX_VER "ironfox/" IRONFOX_VERSION
+#else
#define NGINX_VER "nginx/" NGINX_VERSION
+#endif
#ifdef NGX_BUILD
#define NGINX_VER_BUILD NGINX_VER " (" NGX_BUILD ")"
--- nginx-1.19.2/src/core/ngx_connection.c 2020-08-11 10:52:30.000000000 -0400
+++ ../Khalegh-Backup/source/product/temp/nginx-1.18.0/src/core/ngx_connection.c 2020-08-24 11:13:46.831740051 -0400
@@ -594,6 +579,17 @@
return NGX_ERROR;
}
}
+ ngx_log_debug0(NGX_LOG_DEBUG_CORE, log, 0,
+ "\n_____ ______\n"
+ " |_ _| | ____|\n"
+ " | | _ __ ___ _ __ | |__ _____ __\n"
+ " | | | '__/ _ \\| '_ \\| __/ _ \\ \\/ /\n"
+ " _| |_| | | (_) | | | | | | (_) > <\n"
+ " |_____|_| \\___/|_| |_|_| \\___/_/\\_\\\n"
+ "\n"
+ "\n"
+ " By: Innovera Technology\n"
+ " CodeName: The Desert Fox (0.1.0)\n");
ngx_log_debug2(NGX_LOG_DEBUG_CORE, log, 0,
"bind() %V #%d ", &ls[i].addr_text, s);
--- nginx-1.19.2/src/core/ngx_conf_file.c 2020-08-11 10:52:30.000000000 -0400
+++ ../Khalegh-Backup/source/product/temp/nginx-1.18.0/src/core/ngx_conf_file.c 2020-08-19 12:34:10.003311259 -0400
@@ -8,7 +8,13 @@
#include <ngx_config.h>
#include <ngx_core.h>
+#define IRONFOX
+#ifdef IRONFOX
+#define NGX_CONF_BUFFER 262144
+#elif
#define NGX_CONF_BUFFER 4096
+#endif
+
static ngx_int_t ngx_conf_add_dump(ngx_conf_t *cf, ngx_str_t *filename);
static ngx_int_t ngx_conf_handler(ngx_conf_t *cf, ngx_int_t last);