aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/s2sout.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-10-07 16:52:18 +0200
committerKim Alvefur <zash@zash.se>2016-10-07 16:52:18 +0200
commit67c41ef89e175c064eca7d7518779aefed31c187 (patch)
tree9043fbad3e9e1ac74e957347fedc8cca0a635106 /plugins/mod_s2s/s2sout.lib.lua
parent5ebf40bbffcbd1b50d76228307ade67863c3f586 (diff)
parent36b9149295afd0c8b48e91c82ef0a1f8ebe7f932 (diff)
downloadprosody-67c41ef89e175c064eca7d7518779aefed31c187.tar.gz
prosody-67c41ef89e175c064eca7d7518779aefed31c187.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_s2s/s2sout.lib.lua')
-rw-r--r--plugins/mod_s2s/s2sout.lib.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua
index 1038a616..61d6086e 100644
--- a/plugins/mod_s2s/s2sout.lib.lua
+++ b/plugins/mod_s2s/s2sout.lib.lua
@@ -176,6 +176,8 @@ function s2sout.try_connect(host_session, connect_host, connect_port, err)
log("debug", "DNS reply for %s gives us %s", connect_host, ip.a);
IPs[#IPs+1] = new_ip(ip.a, "IPv4");
end
+ elseif err then
+ log("debug", "Error in DNS lookup: %s", err);
end
if have_other_result then
@@ -212,6 +214,8 @@ function s2sout.try_connect(host_session, connect_host, connect_port, err)
log("debug", "DNS reply for %s gives us %s", connect_host, ip.aaaa);
IPs[#IPs+1] = new_ip(ip.aaaa, "IPv6");
end
+ elseif err then
+ log("debug", "Error in DNS lookup: %s", err);
end
if have_other_result then