summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-04-03 18:53:35 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-04-03 18:53:35 +0000
commit9dbc3a879ba2fd80bf6526c8c848bec18ab64da9 (patch)
tree3d2d5aa2e83b3f76dece6cda964ca2efda571109 /libs/lucid
parent58529e7b7b30f87e47e23a208d07ed0d8acb81bf (diff)
libs/lucid: make lucid work without nixio tls support
Diffstat (limited to 'libs/lucid')
-rw-r--r--libs/lucid/luasrc/lucid/tcpserver.lua2
1 files changed, 1 insertions, 1 deletions
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"