diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-14 01:31:58 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-14 01:31:58 +0200 |
commit | b701156f2f6db7e7e4e3db84a5b82a790f12edc0 (patch) | |
tree | af19f7fa228038bf5c4c5aed04ee106697f3d614 | |
parent | 68d9b01091eeba0df8283f06557be00c2c1f3001 (diff) | |
download | prosody-b701156f2f6db7e7e4e3db84a5b82a790f12edc0.tar.gz prosody-b701156f2f6db7e7e4e3db84a5b82a790f12edc0.zip |
net.server_epoll: Inherit Direct TLS flag from servers to their clients
-rw-r--r-- | net/server_epoll.lua | 3 |
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(); |