Skip to content

Commit adf731f

Browse files
committed
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.
1 parent 9e3650b commit adf731f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http/server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ local function validate_ssl_opts(opts)
13931393
error("ssl_key_file and ssl_cert_file must be set to enable TLS")
13941394
end
13951395

1396-
if not sslsocket_supported then
1396+
if is_tls_enabled and not sslsocket_supported then
13971397
error("ssl socket is not supported")
13981398
end
13991399

0 commit comments

Comments
 (0)