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 22f094529810171a191e606c38c392d541d1bc92..db94ba0ecd7466abc3b5f48134597bc233160d8d 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