From eed8b4fbf3c59b3dac9b0d6c3b8a0ba05350aa2b Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Fri, 26 Apr 2024 22:21:16 +0800 Subject: [PATCH] chore(aux/nginx) clarify the error message of usage of development mode --- lib/resty/openssl/auxiliary/nginx.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/resty/openssl/auxiliary/nginx.lua b/lib/resty/openssl/auxiliary/nginx.lua index 4c33ee13..5755d8ac 100644 --- a/lib/resty/openssl/auxiliary/nginx.lua +++ b/lib/resty/openssl/auxiliary/nginx.lua @@ -125,7 +125,8 @@ else } ngx_connection_s; ]] else - error("resty.openssl.auxiliary.nginx doesn't support Nginx version " .. ngx_version, 2) + error("resty.openssl.auxiliary.nginx development mode doesn't support Nginx version " .. ngx_version .. + ", please compile nginx with lua-resty-openssl-aux-module or lua-kong-nginx-module.", 2) end ffi.cdef [[ @@ -167,7 +168,8 @@ else local NO_C_MODULE_WARNING_MSG_SHOWN = false local NO_C_MODULE_WARNING_MSG = "note resty.openssl.auxiliary.nginx is using plain FFI " .. "and it's only intended to be used in development, " .. - "consider using lua-resty-openssl.aux-module in production." + "consider using lua-resty-openssl-aux-module or " .. + "lua-kong-nginx-module in production." local function get_ngx_ssl_from_req() if not NO_C_MODULE_WARNING_MSG_SHOWN then