aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-09-01 02:05:33 +0200
committerKim Alvefur <zash@zash.se>2019-09-01 02:05:33 +0200
commita56dab0d87d19c507f66bf4b8284aa000b81d334 (patch)
tree44a95212814f039d41f6e77bf824af6a6dab7c5b /net
parent61dd9fbc74ceb1399473a82d0397e9ad2326703b (diff)
downloadprosody-a56dab0d87d19c507f66bf4b8284aa000b81d334.tar.gz
prosody-a56dab0d87d19c507f66bf4b8284aa000b81d334.zip
net.http: Pass server name along for SNI (fixes #1408)
net.resolver.basic passes this 'extra' field along to server.addclient
Diffstat (limited to 'net')
-rw-r--r--net/http.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http.lua b/net/http.lua
index 0e03fb3a..055fc936 100644
--- a/net/http.lua
+++ b/net/http.lua
@@ -260,7 +260,7 @@ local function request(self, u, ex, callback)
sslctx = ex and ex.sslctx or self.options and self.options.sslctx;
end
- local http_service = basic_resolver.new(host, port_number);
+ local http_service = basic_resolver.new(host, port_number, "tcp", { servername = req.host });
connect(http_service, listener, { sslctx = sslctx }, req);
self.events.fire_event("request", { http = self, request = req, url = u });