diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-09-10 23:17:06 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-09-10 23:17:06 +0100 |
commit | c1fdd165bed28e7914d406938c278d811ef2bd65 (patch) | |
tree | 6bfc6f9e4c7f37e2bdc3f7dc065baf6eca197257 /plugins/mod_s2s | |
parent | 2ea9714c6f63b8d5d0b74c14f47eab55b8b5957d (diff) | |
parent | d617081ac45113fdaa8fc0604bee29a08d4aefed (diff) | |
download | prosody-c1fdd165bed28e7914d406938c278d811ef2bd65.tar.gz prosody-c1fdd165bed28e7914d406938c278d811ef2bd65.zip |
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r-- | plugins/mod_s2s/s2sout.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua index 17978b39..07623968 100644 --- a/plugins/mod_s2s/s2sout.lib.lua +++ b/plugins/mod_s2s/s2sout.lib.lua @@ -94,7 +94,7 @@ function s2sout.attempt_connection(host_session, err) handle = adns.lookup(function (answer) handle = nil; host_session.connecting = nil; - if answer then + if answer and #answer > 0 then log("debug", "%s has SRV records, handling...", to_host); local srv_hosts = {}; host_session.srv_hosts = srv_hosts; |