sync lucid
authorSteven Barth <steven@midlink.org>
Thu, 28 May 2009 13:50:05 +0000 (13:50 +0000)
committerSteven Barth <steven@midlink.org>
Thu, 28 May 2009 13:50:05 +0000 (13:50 +0000)
libs/lucid/luasrc/lucid/tcpserver.lua

index 22f0945..db94ba0 100644 (file)
@@ -170,7 +170,7 @@ function prepare_socket(family, host, port, opts, backlog)
 end
 
 function prepare_tls(tlskey)
-       local tls = nixio.tls()
+       local tls = nixio.tls("server")
        if tlskey and cursor:get(UCINAME, tlskey) then
                local cert = cursor:get(UCINAME, tlskey, "cert")
                if cert then