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
commitb701156f2f6db7e7e4e3db84a5b82a790f12edc0 (patch)
treeaf19f7fa228038bf5c4c5aed04ee106697f3d614 /net
parent68d9b01091eeba0df8283f06557be00c2c1f3001 (diff)
downloadprosody-b701156f2f6db7e7e4e3db84a5b82a790f12edc0.tar.gz
prosody-b701156f2f6db7e7e4e3db84a5b82a790f12edc0.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();