From b701156f2f6db7e7e4e3db84a5b82a790f12edc0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 14 Sep 2018 01:31:58 +0200 Subject: net.server_epoll: Inherit Direct TLS flag from servers to their clients --- net/server_epoll.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net') 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(); -- cgit v1.2.3