From a344264dc4b51f536f446b7898cfcdae1ec5e3dc Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Fri, 9 Dec 2022 16:55:29 +0800 Subject: [PATCH 1/5] Update config --- stream/config | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stream/config b/stream/config index 08c4a810..bfd39c1b 100644 --- a/stream/config +++ b/stream/config @@ -1,7 +1,13 @@ ngx_module_type=STREAM ngx_module_name=ngx_stream_lua_kong_module ngx_module_srcs="$ngx_addon_dir/src/ngx_stream_lua_kong_module.c" -ngx_module_incs="$ngx_addon_dir/src" + +if [ -z "$NGX_STREAM_LUA_LOC" ]; then + ngx_stream_lua_loc="../ngx_stream_lua-*" +else + ngx_stream_lua_loc="$NGX_STREAM_LUA_LOC" +fi +ngx_module_incs="$ngx_addon_dir/src $ngx_stream_lua_loc/src" . auto/module From 22875d5ab7df90d1bc8b046ab00aa49c5a608490 Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Fri, 9 Dec 2022 17:30:14 +0800 Subject: [PATCH 2/5] Update ngx_stream_lua_kong_module.c --- stream/src/ngx_stream_lua_kong_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stream/src/ngx_stream_lua_kong_module.c b/stream/src/ngx_stream_lua_kong_module.c index 3ebf63b6..7b1f48f5 100644 --- a/stream/src/ngx_stream_lua_kong_module.c +++ b/stream/src/ngx_stream_lua_kong_module.c @@ -19,6 +19,7 @@ #include #include #include +#include #include "ngx_stream_lua_kong_module.h" From 7e58f87c275b5b13d8065a6b795ee1b32d6f9d34 Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Fri, 9 Dec 2022 17:32:04 +0800 Subject: [PATCH 3/5] don't need this --- stream/config | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/stream/config b/stream/config index bfd39c1b..b4a317b5 100644 --- a/stream/config +++ b/stream/config @@ -2,12 +2,7 @@ ngx_module_type=STREAM ngx_module_name=ngx_stream_lua_kong_module ngx_module_srcs="$ngx_addon_dir/src/ngx_stream_lua_kong_module.c" -if [ -z "$NGX_STREAM_LUA_LOC" ]; then - ngx_stream_lua_loc="../ngx_stream_lua-*" -else - ngx_stream_lua_loc="$NGX_STREAM_LUA_LOC" -fi -ngx_module_incs="$ngx_addon_dir/src $ngx_stream_lua_loc/src" +ngx_module_incs="$ngx_addon_dir/src" . auto/module From 127ee4727f78de890cd5ea0b706682f7e3d157ba Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Fri, 9 Dec 2022 17:32:15 +0800 Subject: [PATCH 4/5] Update config --- stream/config | 1 - 1 file changed, 1 deletion(-) diff --git a/stream/config b/stream/config index b4a317b5..08c4a810 100644 --- a/stream/config +++ b/stream/config @@ -1,7 +1,6 @@ ngx_module_type=STREAM ngx_module_name=ngx_stream_lua_kong_module ngx_module_srcs="$ngx_addon_dir/src/ngx_stream_lua_kong_module.c" - ngx_module_incs="$ngx_addon_dir/src" . auto/module From 70636265f80911b472278bf99f9d4cd4d3ad947f Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Fri, 9 Dec 2022 18:00:24 +0800 Subject: [PATCH 5/5] we do need this --- stream/config | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stream/config b/stream/config index 08c4a810..bfd39c1b 100644 --- a/stream/config +++ b/stream/config @@ -1,7 +1,13 @@ ngx_module_type=STREAM ngx_module_name=ngx_stream_lua_kong_module ngx_module_srcs="$ngx_addon_dir/src/ngx_stream_lua_kong_module.c" -ngx_module_incs="$ngx_addon_dir/src" + +if [ -z "$NGX_STREAM_LUA_LOC" ]; then + ngx_stream_lua_loc="../ngx_stream_lua-*" +else + ngx_stream_lua_loc="$NGX_STREAM_LUA_LOC" +fi +ngx_module_incs="$ngx_addon_dir/src $ngx_stream_lua_loc/src" . auto/module