From 31070e9351b78ac4039dbc37131a445b068a596e Mon Sep 17 00:00:00 2001 From: Kro Date: Fri, 14 May 2021 01:47:59 -0600 Subject: [PATCH] fix ngx_lua_version bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复更换lua-nginx-module版本之后,base.lua中版本不匹配导致启动nginx失败。 --- resty/core/base.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resty/core/base.lua b/resty/core/base.lua index 0b27d4a..96ce881 100644 --- a/resty/core/base.lua +++ b/resty/core/base.lua @@ -19,9 +19,9 @@ if subsystem == 'http' then local ngx_lua_v = ngx.config.ngx_lua_version if not ngx.config or not ngx.config.ngx_lua_version - or (ngx_lua_v ~= 10016 and ngx_lua_v ~= 10017) + or (ngx_lua_v ~= 10019 and ngx_lua_v ~= 10020) then - error("ngx_http_lua_module 0.10.16 or 0.10.17 required") + error("ngx_http_lua_module 0.10.19 or 0.10.20 required") end elseif subsystem == 'stream' then