aboutsummaryrefslogtreecommitdiffstats
path: root/net/connlisteners.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/connlisteners.lua')
-rw-r--r--net/connlisteners.lua4
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