From adf731fac8195e01cfcbea5e94e1a09c22699aed Mon Sep 17 00:00:00 2001 From: themilchenko Date: Tue, 12 Nov 2024 10:36:46 +0300 Subject: [PATCH] tls: fix error ssl socket support Check of ssl socket support occurs always, even if ssl is disabled. After the patch support of ssl socket checks only if tls is enabled. --- http/server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/server.lua b/http/server.lua index d67fe5a..7403159 100644 --- a/http/server.lua +++ b/http/server.lua @@ -1393,7 +1393,7 @@ local function validate_ssl_opts(opts) error("ssl_key_file and ssl_cert_file must be set to enable TLS") end - if not sslsocket_supported then + if is_tls_enabled and not sslsocket_supported then error("ssl socket is not supported") end