Diff

net/server_epoll.lua @ 10234:d4390c427a66

net.server: Handle server name (SNI) as extra argument Code added in 75d2874502c3, 9a905888b96c and adc0672b700e uses this field. See #409 and #1408
author Kim Alvefur <zash@zash.se>
date Sun, 01 Sep 2019 01:58:38 +0200
parent 10233:600eee3c4752
child 10278:94c584d67533
line wrap: on
line diff
--- a/net/server_epoll.lua	Sun Sep 01 01:55:55 2019 +0200
+++ b/net/server_epoll.lua	Sun Sep 01 01:58:38 2019 +0200
@@ -575,6 +575,12 @@
 		extra = extra;
 	}, interface_mt);
 
+	if extra then
+		if extra.servername then
+			conn.servername = extra.servername;
+		end
+	end
+
 	conn:updatenames();
 	return conn;
 end