Diff

net/server_epoll.lua @ 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
parent 11592:64cfa396bb84
child 11658:36942fa001b4
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;