Skip to content

Commit

Permalink
chore(aux/nginx) clarify the error message of usage of development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed May 6, 2024
1 parent 86068aa commit eed8b4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/resty/openssl/auxiliary/nginx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 [[
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eed8b4f

Please sign in to comment.