aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-06-10 11:55:40 -0156
committerKim Alvefur <zash@zash.se>2021-06-10 11:55:40 -0156
commit672f9dcd637b9652d2ecd791410bbce3849736bc (patch)
tree5b4a605680957a844f154d993639511b1e0aca82 /net
parent2f7da2c6ea762ccf72a9658ed2da163394652c16 (diff)
downloadprosody-672f9dcd637b9652d2ecd791410bbce3849736bc.tar.gz
prosody-672f9dcd637b9652d2ecd791410bbce3849736bc.zip
net.server_epoll: Add missing method for changing TLS context
Supported by the other net.server implementations already, but not used anywhere in Prosody.
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua4
1 files changed, 4 insertions, 0 deletions
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;