aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/s2s/s2sout.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-28 03:11:45 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-28 03:11:45 +0100
commit5d28dc3276c0da0803adff0252db00440ac44a5b (patch)
tree35bbcd25b8486f2ed38c610736e312266d140091 /plugins/s2s/s2sout.lib.lua
parent561bbc3a2ebe967de780c3a6c7cbf203b89f226a (diff)
downloadprosody-5d28dc3276c0da0803adff0252db00440ac44a5b.tar.gz
prosody-5d28dc3276c0da0803adff0252db00440ac44a5b.zip
mod_s2s/s2sout.lib: Fix imports and some undefined variables
Diffstat (limited to 'plugins/s2s/s2sout.lib.lua')
-rw-r--r--plugins/s2s/s2sout.lib.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/s2s/s2sout.lib.lua b/plugins/s2s/s2sout.lib.lua
index af55b273..011c864f 100644
--- a/plugins/s2s/s2sout.lib.lua
+++ b/plugins/s2s/s2sout.lib.lua
@@ -12,16 +12,18 @@ local portmanager = require "core.portmanager";
local wrapclient = require "net.server".wrapclient;
local initialize_filters = require "util.filters".initialize;
local idna_to_ascii = require "util.encodings".idna.to_ascii;
-local add_task = require "util.timer".add_task;
local new_ip = require "util.ip".new_ip;
local rfc3484_dest = require "util.rfc3484".destination;
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 s2s_new_outgoing = require "core.s2smanager".new_outgoing;
local s2s_destroy_session = require "core.s2smanager".destroy_session;
+local log = module._log;
+
local sources = {};
local max_dns_depth = module:get_option_number("dns_max_depth", 3);
@@ -67,7 +69,7 @@ function s2sout.initiate_connection(host_session)
buffer = {};
host_session.send_buffer = buffer;
end
- log("debug", "Buffering data on unconnected s2sout to %s", to_host);
+ log("debug", "Buffering data on unconnected s2sout to %s", tostring(host_session.to_host));
buffer[#buffer+1] = data;
log("debug", "Buffered item %d: %s", #buffer, tostring(data));
end