From: Jo-Philipp Wich Date: Sat, 3 Apr 2010 18:53:35 +0000 (+0000) Subject: libs/lucid: make lucid work without nixio tls support X-Git-Tag: 0.10.0~743 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9dbc3a879ba2fd80bf6526c8c848bec18ab64da9;p=oweals%2Fluci.git libs/lucid: make lucid work without nixio tls support --- diff --git a/libs/lucid/luasrc/lucid/tcpserver.lua b/libs/lucid/luasrc/lucid/tcpserver.lua index b280f5f7f..266ea29e4 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"