fix ngx_lua_version bug

修复更换lua-nginx-module版本之后,base.lua中版本不匹配导致启动nginx失败。
pull/13/head
Kro 2021-05-14 01:47:59 -06:00 committed by GitHub
parent a2a66942b3
commit 31070e9351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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