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 | 34bd628b8cb477a408cf0f1a128135857fb315c2 (patch) | |
tree | af19f7fa228038bf5c4c5aed04ee106697f3d614 /net | |
parent | 78c396508907ee753363de2a988fe717283c36c4 (diff) | |
download | prosody-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.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(); |