mirror of
https://github.com/brunoos/luasec.git
synced 2025-02-13 23:42:49 +01:00
parent
4889830d53
commit
77b88e0b0d
@ -89,6 +89,7 @@ local function tcp(params)
|
|||||||
function conn:connect(host, port)
|
function conn:connect(host, port)
|
||||||
try(self.sock:connect(host, port))
|
try(self.sock:connect(host, port))
|
||||||
self.sock = try(ssl.wrap(self.sock, params))
|
self.sock = try(ssl.wrap(self.sock, params))
|
||||||
|
self.sock:sni(host)
|
||||||
try(self.sock:dohandshake())
|
try(self.sock:dohandshake())
|
||||||
reg(self, getmetatable(self.sock))
|
reg(self, getmetatable(self.sock))
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user