nginx_tcp_proxy_module
nginx_tcp_proxy_module copied to clipboard
Don't support nginx 1.11 or later version
on nginx 1.12.1 i get this error
/tmp/nginx-1.12.1$ sudo patch -p1 < ../nginx_tcp_proxy_module/tcp.patch
patching file src/core/ngx_log.c
Hunk #1 FAILED at 66.
1 out of 1 hunk FAILED -- saving rejects to file src/core/ngx_log.c.rej
patching file src/core/ngx_log.h
Hunk #1 FAILED at 29.
Hunk #2 FAILED at 36.
2 out of 2 hunks FAILED -- saving rejects to file src/core/ngx_log.h.rej
patching file src/event/ngx_event_connect.h
Hunk #1 succeeded at 18 with fuzz 2 (offset -14 lines).
Hunk #2 succeeded at 47 with fuzz 2 (offset 4 lines).
cat src/core/ngx_log.c.rej
--- src/core/ngx_log.c
+++ src/core/ngx_log.c
@@ -66,7 +66,7 @@
static const char *debug_levels[] = {
"debug_core", "debug_alloc", "debug_mutex", "debug_event",
- "debug_http", "debug_mail", "debug_mysql"
+ "debug_http", "debug_mail", "debug_mysql", "debug_tcp"
};
You need to use tcp_1_8.patch instead of tcp.patch for versions higher than 1.8.