Changeset

9432:2e3f66475cc8

net.server_epoll: Inherit Direct TLS flag from servers to their clients
author Kim Alvefur <zash@zash.se>
date Fri, 14 Sep 2018 01:31:58 +0200
parents 9431:c3c0523a37c6
children 9433:13b8d47119ad
files net/server_epoll.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Fri Sep 14 01:31:26 2018 +0200
+++ b/net/server_epoll.lua	Fri Sep 14 01:31:58 2018 +0200
@@ -513,7 +513,8 @@
 		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();