# HG changeset patch # User Kim Alvefur # Date 1364077813 -3600 # Node ID 43059357b2f0a1aed4cc0c23dd9b06331fcd1a50 # Parent d663483036db791631a0c66992d8d88ff3984d10 mod_s2s: Keep the dns answer object around a while so plugins can look at it diff -r d663483036db -r 43059357b2f0 plugins/mod_s2s/s2sout.lib.lua --- 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);