libs/lucid: make lucid work without nixio tls support
This commit is contained in:
parent
58529e7b7b
commit
9dbc3a879b
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue