chobits / ngx_http_proxy_connect_module

A forward proxy module for CONNECT request handling
BSD 2-Clause "Simplified" License
1.75k stars 484 forks source link

is this module supported for openresty? #291

Closed Yahook closed 6 months ago

Yahook commented 6 months ago

nginx version: openresty/1.21.4.2

./configure -j8 \ --with-http_realip_module \ --with-http_gunzip_module \ --add-module=./modules/ngx_http_proxy_connect_module

I get errors when I do make

Errors like this one: /opt/openresty/openresty-1.21.4.2/modules/ngx_http_proxy_connect_module/ngx_http_proxy_connect_module.c:1665:39: error: ‘ngx_http_request_t’ {aka ‘struct ngx_http_request_s’} has no member named ‘connect_port_n’; did you mean ‘connection’? 1665 | || (ports[i][0] <= r->connect_port_n && r->connect_port_n <= ports[i][1])) | ^~~~~~~~~~~~~~

Is there any solution? Thanks.