plugins/mod_s2s/s2sout.lib.lua
changeset 5386 43059357b2f0
parent 5351 901ed253bbf7
child 5388 f833d2188c16
--- a/plugins/mod_s2s/s2sout.lib.lua	Sat Mar 23 20:06:02 2013 +0100
+++ b/plugins/mod_s2s/s2sout.lib.lua	Sat Mar 23 23:30:13 2013 +0100
@@ -90,7 +90,7 @@
 			host_session.connecting = nil;
 			if answer and #answer > 0 then
 				log("debug", "%s has SRV records, handling...", to_host);
-				local srv_hosts = {};
+				local srv_hosts = { answer = answer };
 				host_session.srv_hosts = srv_hosts;
 				for _, record in ipairs(answer) do
 					t_insert(srv_hosts, record.srv);