Skip to content

Commit

Permalink
tls: fix error ssl socket support
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
themilchenko committed Nov 12, 2024
1 parent 9e3650b commit 5bfaaf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5bfaaf8

Please sign in to comment.