Software /
code /
prosody
Diff
plugins/mod_s2s/s2sout.lib.lua @ 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 |
parent | 5351:901ed253bbf7 |
child | 5388:f833d2188c16 |
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);