From 2e855ee04bcfddfcf5c7eb9f840e832237f98225 Mon Sep 17 00:00:00 2001 From: Selboo Date: Sun, 8 Nov 2020 21:46:48 +0800 Subject: [PATCH] fix ngx_stream_ipdb_lua.c:27: undefined reference to `ngx_stream_lua_get_request' openresty-1.19.3.1 stream-lua-nginx-module 0.0.9 not found ngx_stream_lua_get_request https://github.com/openresty/stream-lua-nginx-module/blob/v0.0.9/src/ngx_stream_lua_util.h#L391 --- ngx_stream_ipdb_lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngx_stream_ipdb_lua.c b/ngx_stream_ipdb_lua.c index 66d7903..c7531c1 100644 --- a/ngx_stream_ipdb_lua.c +++ b/ngx_stream_ipdb_lua.c @@ -24,7 +24,7 @@ ngx_stream_ipdb_get_raw(lua_State *L) ngx_stream_ipdb_main_conf_t *imcf; - r = ngx_stream_lua_get_request(L); + r = ngx_stream_lua_get_req(L); if (r == NULL) { return luaL_error(L, "no request object found"); } @@ -83,4 +83,4 @@ ngx_stream_ipdb_lua_preload(ngx_conf_t *cf) } return NGX_OK; -} \ No newline at end of file +}