diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/connlisteners.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/connlisteners.lua b/net/connlisteners.lua index e0076ddb..ee54f049 100644 --- a/net/connlisteners.lua +++ b/net/connlisteners.lua @@ -59,6 +59,10 @@ function start(name, udata) local ssl = (udata and udata.ssl) or nil; local autossl = udata and udata.type == "ssl"; + if autossl and not ssl then + return nil, "no ssl context"; + end + return server.addserver(interface, port, h, mode, autossl and ssl or nil); end |