You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s -I src/http -I src/http/modules \
-o objs/src/http/modules/ngx_http_upstream_zone_module.o \
src/http/modules/ngx_http_upstream_zone_module.c
cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/event/quic -I src/os/unix -I objs -I src/http -I src/http/modules \
-o objs/addon/src/ngx_http_socks_module.o \
../socks-nginx-module/src/ngx_http_socks_module.c
../socks-nginx-module/src/ngx_http_socks_module.c: In function ‘ngx_http_socks_create_request’:
../socks-nginx-module/src/ngx_http_socks_module.c:991:33: error: ‘ngx_http_request_t’ {aka ‘struct ngx_http_request_s’} has no member named ‘space_in_uri’; did you mean ‘plus_in_uri’?
991 | if (r->quoted_uri || r->space_in_uri || r->internal) {
| ^~~~~~~~~~~~
| plus_in_uri
../socks-nginx-module/src/ngx_http_socks_module.c: In function ‘ngx_http_socks_add_x_forwarded_for_variable’:
../socks-nginx-module/src/ngx_http_socks_module.c:2228:38: error: ‘r->headers_in.x_forwarded_for’ is a pointer; did you mean to use ‘->’?
2228 | n = r->headers_in.x_forwarded_for.nelts;
| ^
| ->
../socks-nginx-module/src/ngx_http_socks_module.c:2229:38: error: ‘r->headers_in.x_forwarded_for’ is a pointer; did you mean to use ‘->’?
2229 | h = r->headers_in.x_forwarded_for.elts;
| ^
| ->
../socks-nginx-module/src/ngx_http_socks_module.c: In function ‘ngx_http_socks_init_headers’:
../socks-nginx-module/src/ngx_http_socks_module.c:3260:26: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘long unsigned int (*)(ngx_http_script_engine_t *)’} to ‘void (*)(ngx_http_script_engine_t *)’ [-Werror=cast-function-type]
3260 | copy->code = (ngx_http_script_code_pt)
| ^
../socks-nginx-module/src/ngx_http_socks_module.c:3295:26: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘long unsigned int (*)(ngx_http_script_engine_t *)’} to ‘void (*)(ngx_http_script_engine_t *)’ [-Werror=cast-function-type]
3295 | copy->code = (ngx_http_script_code_pt)
| ^
../socks-nginx-module/src/ngx_http_socks_module.c:3336:26: error: cast between incompatible function types from ‘size_t (*)(ngx_http_script_engine_t *)’ {aka ‘long unsigned int (*)(ngx_http_script_engine_t *)’} to ‘void (*)(ngx_http_script_engine_t *)’ [-Werror=cast-function-type]
3336 | copy->code = (ngx_http_script_code_pt)
| ^
cc1: all warnings being treated as errors
make[1]: *** [objs/Makefile:1218: objs/addon/src/ngx_http_socks_module.o] Error 1
make[1]: Leaving directory '/home/harry/tmp/nginx-1.25.1'
make: *** [Makefile:10: build] Error 2
harry@host2:~/tmp/nginx-1.25.1$
The text was updated successfully, but these errors were encountered:
@SkowRon96 there was a lot of changes in nginx core since this module last release. I've started a complete rewrite but it's not ready yet. Maybe I'll finish it next year. Unfortunately I don't have enough free time now and I'm not willing to release something half-baked.
Also @harryqt is correct on that you can proxy your requests via something else. You could use, for instance, a transparent proxy like I did in abiko/tor2web.
The text was updated successfully, but these errors were encountered: