Software /
code /
prosody
Comparison
plugins/mod_tls.lua @ 7712:0d93dfc2fbfd
mod_tls: Ignore unused argument [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 02 Nov 2016 23:19:41 +0100 |
parent | 6919:ab6c57633ce5 |
child | 7833:94c0c8649826 |
comparison
equal
deleted
inserted
replaced
7711:c8130995d4d1 | 7712:0d93dfc2fbfd |
---|---|
121 session.sends2s(starttls_initiate); | 121 session.sends2s(starttls_initiate); |
122 return true; | 122 return true; |
123 end | 123 end |
124 end, 500); | 124 end, 500); |
125 | 125 |
126 module:hook_stanza(xmlns_starttls, "proceed", function (session, stanza) | 126 module:hook_stanza(xmlns_starttls, "proceed", function (session, stanza) -- luacheck: ignore 212/stanza |
127 module:log("debug", "Proceeding with TLS on s2sout..."); | 127 module:log("debug", "Proceeding with TLS on s2sout..."); |
128 session:reset_stream(); | 128 session:reset_stream(); |
129 session.conn:starttls(session.ssl_ctx); | 129 session.conn:starttls(session.ssl_ctx); |
130 session.secure = false; | 130 session.secure = false; |
131 return true; | 131 return true; |