luci-0.9: merge r6014
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 3 Apr 2010 19:02:18 +0000 (19:02 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 3 Apr 2010 19:02:18 +0000 (19:02 +0000)
libs/lucid/luasrc/lucid/tcpserver.lua

index 2d82246dffd9e1e95f47b49da5457618b6e8e813..477152ef16f8e21e2083cc51679eb45dbd5258a6 100644 (file)
@@ -176,7 +176,7 @@ end
 
 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"