Skip to content

Commit 028da56

Browse files
committed
fix(aux/nginx) add nginx 1.21.4 and ngx_lua 0.10.21 to support matrix
1 parent 23a4380 commit 028da56

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/resty/openssl/auxiliary/nginx.lua

+4-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ else
4040
]]
4141

4242
local ngx_version = ngx.config.nginx_version
43-
if ngx_version == 1017008 or ngx_version == 1019003 or ngx_version == 1019009 then
44-
-- 1.17.8, 1.19.3, 1.19.9
43+
if ngx_version == 1017008 or ngx_version == 1019003 or ngx_version == 1019009
44+
or ngx_version == 1021004 then
45+
-- 1.17.8, 1.19.3, 1.19.9, 1.21.4
4546
-- https://github.com/nginx/nginx/blob/master/src/core/ngx_connection.h
4647
ffi.cdef [[
4748
typedef struct {
@@ -212,7 +213,7 @@ else
212213
ngx.config.ngx_lua_version and
213214
ngx.config.ngx_lua_version
214215

215-
if ngx_lua_version >= 10019 and ngx_lua_version <= 10020 then
216+
if ngx_lua_version >= 10019 and ngx_lua_version <= 10021 then
216217
-- https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_socket_tcp.h
217218
ffi.cdef[[
218219
typedef struct {

0 commit comments

Comments
 (0)