aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
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();