Skip to content

Commit 176b05a

Browse files
committed
change: now we require ngx_http_lua 0.10.18 and ngx_stream_lua 0.0.9.
1 parent 24a2a1d commit 176b05a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ of this library in the particular OpenResty release you are using. Otherwise you
108108
into serious compatibility issues.
109109

110110
* LuaJIT 2.1 (for now, it is the v2.1 git branch in the official luajit-2.0 git repository: http://luajit.org/download.html )
111-
* [ngx_http_lua_module](https://github.com/openresty/lua-nginx-module) v0.10.16 or v0.10.17.
112-
* [ngx_stream_lua_module](https://github.com/openresty/stream-lua-nginx-module) v0.0.8.
111+
* [ngx_http_lua_module](https://github.com/openresty/lua-nginx-module) v0.10.18.
112+
* [ngx_stream_lua_module](https://github.com/openresty/stream-lua-nginx-module) v0.0.9.
113113
* [lua-resty-lrucache](https://github.com/openresty/lua-resty-lrucache)
114114

115115
[Back to TOC](#table-of-contents)

lib/resty/core/base.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ if subsystem == 'http' then
1919
local ngx_lua_v = ngx.config.ngx_lua_version
2020
if not ngx.config
2121
or not ngx.config.ngx_lua_version
22-
or (ngx_lua_v ~= 10016 and ngx_lua_v ~= 10017)
22+
or (ngx_lua_v ~= 10018)
2323
then
24-
error("ngx_http_lua_module 0.10.16 or 0.10.17 required")
24+
error("ngx_http_lua_module 0.10.18 required")
2525
end
2626

2727
elseif subsystem == 'stream' then
2828
if not ngx.config
2929
or not ngx.config.ngx_lua_version
30-
or ngx.config.ngx_lua_version ~= 8
30+
or ngx.config.ngx_lua_version ~= 9
3131
then
32-
error("ngx_stream_lua_module 0.0.8 required")
32+
error("ngx_stream_lua_module 0.0.9 required")
3333
end
3434

3535
else
36-
error("ngx_http_lua_module 0.10.16 or "
37-
.. "ngx_stream_lua_module 0.0.8 required")
36+
error("ngx_http_lua_module 0.10.18 or "
37+
.. "ngx_stream_lua_module 0.0.9 required")
3838
end
3939

4040

0 commit comments

Comments
 (0)