Changeset

11595:8985efc6792d

net.server_epoll: Add missing method for changing TLS context Supported by the other net.server implementations already, but not used anywhere in Prosody.
author Kim Alvefur <zash@zash.se>
date Thu, 10 Jun 2021 13:48:20 -0003
parents 11594:19aac4247b03
children 11596:f6f1b50cbedf
files net/server_epoll.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Tue Jun 08 13:33:40 2021 +0200
+++ b/net/server_epoll.lua	Thu Jun 10 13:48:20 2021 -0003
@@ -543,6 +543,10 @@
 	return self._tls;
 end
 
+function interface:set_sslctx(sslctx)
+	self._sslctx = sslctx;
+end
+
 function interface:starttls(tls_ctx)
 	if tls_ctx then self.tls_ctx = tls_ctx; end
 	self.starttls = false;