projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f29b45e
)
mod_tls: Remove some redundant variable declarations
author
Matthew Wild
<mwild1@gmail.com>
Sun, 31 Jan 2010 15:40:28 +0000
(15:40 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 31 Jan 2010 15:40:28 +0000
(15:40 +0000)
plugins/mod_tls.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_tls.lua
b/plugins/mod_tls.lua
index 897c818b95fcec1b55cf41fcb7adb616dc1b3e6d..73b5ae095184eab3c76fd7b06e3f3a841d4744dc 100644
(file)
--- a/
plugins/mod_tls.lua
+++ b/
plugins/mod_tls.lua
@@
-87,7
+87,6
@@
module:hook_stanza(xmlns_stream, "features",
module:hook_stanza(xmlns_starttls, "proceed",
function (session, stanza)
module:log("debug", "Proceeding with TLS on s2sout...");
- local format, to_host, from_host = string.format, session.to_host, session.from_host;
session:reset_stream();
local ssl_ctx = session.from_host and hosts[session.from_host].ssl_ctx or global_ssl_ctx;
session.conn:starttls(ssl_ctx, true);