mirror of
https://github.com/brunoos/luasec.git
synced 2025-07-18 06:49:49 +02:00
@ -89,6 +89,7 @@ local function tcp(params)
|
||||
function conn:connect(host, port)
|
||||
try(self.sock:connect(host, port))
|
||||
self.sock = try(ssl.wrap(self.sock, params))
|
||||
self.sock:sni(host)
|
||||
try(self.sock:dohandshake())
|
||||
reg(self, getmetatable(self.sock))
|
||||
return 1
|
||||
|
Reference in New Issue
Block a user