# HG changeset patch # User Kim Alvefur # Date 1623333100 200 # Node ID 8985efc6792d29bfe4444ac375ffc969b90fb177 # Parent 19aac4247b03915d384b9c7d8f5db59b65931ff2 net.server_epoll: Add missing method for changing TLS context Supported by the other net.server implementations already, but not used anywhere in Prosody. diff -r 19aac4247b03 -r 8985efc6792d 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;