diff options
-rw-r--r-- | libs/lucid/luasrc/lucid/tcpserver.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/lucid/luasrc/lucid/tcpserver.lua b/libs/lucid/luasrc/lucid/tcpserver.lua index b280f5f7fe..266ea29e49 100644 --- a/libs/lucid/luasrc/lucid/tcpserver.lua +++ b/libs/lucid/luasrc/lucid/tcpserver.lua @@ -193,7 +193,7 @@ end -- @return TLS server conext or nil function prepare_tls(tlskey) local tls - if tlskey and cursor:get(UCINAME, tlskey) then + if nixio.tls and tlskey and cursor:get(UCINAME, tlskey) then tls = nixio.tls("server") local make = cursor:get(UCINAME, tlskey, "generate") == "1" |