|
| 1 | +diff --git a/lib/resty/openssl/auxiliary/nginx.lua b/lib/resty/openssl/auxiliary/nginx.lua |
| 2 | +index 5755d8a..540cbc1 100644 |
| 3 | +--- a/lib/resty/openssl/auxiliary/nginx.lua |
| 4 | ++++ b/lib/resty/openssl/auxiliary/nginx.lua |
| 5 | +@@ -44,8 +44,9 @@ else |
| 6 | + local ngx_has_http_v3 = ngx_configure and ngx_configure:find("--with-http_v3_module", 1, true) |
| 7 | + -- https://github.com/nginx/nginx/blob/master/src/core/ngx_connection.h |
| 8 | + if ngx_version == 1017008 or ngx_version == 1019003 or ngx_version == 1019009 |
| 9 | +- or ngx_version == 1021004 or (not ngx_has_http_v3 and ngx_version == 1025003) then |
| 10 | +- -- 1.17.8, 1.19.3, 1.19.9, 1.21.4, 1.25.3 |
| 11 | ++ or ngx_version == 1021004 |
| 12 | ++ or (not ngx_has_http_v3 and (ngx_version == 1025003 or ngx_version == 1027001)) then |
| 13 | ++ -- 1.17.8, 1.19.3, 1.19.9, 1.21.4, 1.25.3, 1.27.1 |
| 14 | + ffi.cdef [[ |
| 15 | + typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t; |
| 16 | + |
| 17 | +@@ -82,7 +83,7 @@ else |
| 18 | + // trimmed |
| 19 | + } ngx_connection_s; |
| 20 | + ]] |
| 21 | +- elseif ngx_has_http_v3 and ngx_version == 1025003 then |
| 22 | ++ elseif ngx_has_http_v3 and (ngx_version == 1025003 or ngx_version == 1027001) then |
| 23 | + -- 1.25.3 |
| 24 | + ffi.cdef [[ |
| 25 | + typedef struct ngx_proxy_protocol_s ngx_proxy_protocol_t; |
| 26 | +@@ -255,7 +256,7 @@ else |
| 27 | + ngx.config.ngx_lua_version and |
| 28 | + ngx.config.ngx_lua_version |
| 29 | + |
| 30 | +- if ngx_lua_version >= 10019 and ngx_lua_version <= 10026 then |
| 31 | ++ if ngx_lua_version >= 10019 and ngx_lua_version <= 10027 then |
| 32 | + -- https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_socket_tcp.h |
| 33 | + ffi.cdef[[ |
| 34 | + typedef struct { |
0 commit comments