net.server_epoll: Add missing method for changing TLS context
authorKim Alvefur <zash@zash.se>
Thu, 10 Jun 2021 13:48:20 -0003
changeset 11599 8985efc6792d
parent 11598 19aac4247b03
child 11600 f6f1b50cbedf
net.server_epoll: Add missing method for changing TLS context Supported by the other net.server implementations already, but not used anywhere in Prosody.
net/server_epoll.lua
--- 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;