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-Url: http://git.99rst.org/?a=commitdiff_plain;h=9dbc3a879ba2fd80bf6526c8c848bec18ab64da9;p=openwrt-luci.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 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"