diff --git a/src/https.lua b/src/https.lua index befb72d..7916851 100644 --- a/src/https.lua +++ b/src/https.lua @@ -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