Changeset

5386:43059357b2f0

mod_s2s: Keep the dns answer object around a while so plugins can look at it
author Kim Alvefur <zash@zash.se>
date Sat, 23 Mar 2013 23:30:13 +0100
parents 5385:d663483036db
children 5387:1130887e0d41
files plugins/mod_s2s/s2sout.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);