aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-14 01:31:58 +0200
committerKim Alvefur <zash@zash.se>2018-09-14 01:31:58 +0200
commit34bd628b8cb477a408cf0f1a128135857fb315c2 (patch)
treeaf19f7fa228038bf5c4c5aed04ee106697f3d614 /net
parent78c396508907ee753363de2a988fe717283c36c4 (diff)
downloadprosody-34bd628b8cb477a408cf0f1a128135857fb315c2.tar.gz
prosody-34bd628b8cb477a408cf0f1a128135857fb315c2.zip
net.server_epoll: Inherit Direct TLS flag from servers to their clients
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index ad888ef4..e6b31bdf 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -513,7 +513,8 @@ local function wrapsocket(client, server, read_size, listeners, tls_ctx) -- luas
listeners = listeners;
read_size = read_size or (server and server.read_size);
writebuffer = {};
- tls_ctx = tls_ctx;
+ tls_ctx = tls_ctx or (server and server.tls_ctx);
+ tls_direct = server and server.tls_direct;
}, interface_mt);
conn:updatenames();