From 672f9dcd637b9652d2ecd791410bbce3849736bc Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 10 Jun 2021 11:55:40 -0156 Subject: 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 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net') diff --git a/net/server_epoll.lua b/net/server_epoll.lua index ed916b84..25a50373 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -543,6 +543,10 @@ function interface:ssl() 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; -- cgit v1.2.3