aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-06-18 12:14:46 +0100
committerMatthew Wild <mwild1@gmail.com>2013-06-18 12:14:46 +0100
commit499c08170367cf04d9444f72f9a3077ec1d4ab95 (patch)
treeb27001cda28ff03af72d5f6012395eb31b184afd /plugins/mod_s2s
parent21d0887bb2c70f7eb861fc72827d64c46d891b91 (diff)
downloadprosody-499c08170367cf04d9444f72f9a3077ec1d4ab95.tar.gz
prosody-499c08170367cf04d9444f72f9a3077ec1d4ab95.zip
mod_s2s/s2sout.lib: Remove unused variables and imports
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r--plugins/mod_s2s/s2sout.lib.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua
index cc682280..575d37ac 100644
--- a/plugins/mod_s2s/s2sout.lib.lua
+++ b/plugins/mod_s2s/s2sout.lib.lua
@@ -18,7 +18,6 @@ local socket = require "socket";
local adns = require "net.adns";
local dns = require "net.dns";
local t_insert, t_sort, ipairs = table.insert, table.sort, ipairs;
-local st = require "util.stanza";
local local_addresses = require "util.net".local_addresses;
local s2s_destroy_session = require "core.s2smanager".destroy_session;
@@ -74,7 +73,7 @@ function s2sout.initiate_connection(host_session)
end
function s2sout.attempt_connection(host_session, err)
- local from_host, to_host = host_session.from_host, host_session.to_host;
+ local to_host = host_session.to_host;
local connect_host, connect_port = to_host and idna_to_ascii(to_host), 5269;
if not connect_host then
@@ -267,10 +266,7 @@ end
function s2sout.make_connect(host_session, connect_host, connect_port)
(host_session.log or log)("info", "Beginning new connection attempt to %s ([%s]:%d)", host_session.to_host, connect_host.addr, connect_port);
- -- Ok, we're going to try to connect
-
- local from_host, to_host = host_session.from_host, host_session.to_host;
-
+
-- Reset secure flag in case this is another
-- connection attempt after a failed STARTTLS
host_session.secure = nil;