diff options
author | Kim Alvefur <zash@zash.se> | 2016-10-04 15:46:24 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-10-04 15:46:24 +0200 |
commit | 36b9149295afd0c8b48e91c82ef0a1f8ebe7f932 (patch) | |
tree | 425da7b20d2e72347abdf5a8f741a1277c6f4fc7 /plugins | |
parent | d22a43da00e6feab2b360d81330deb02e58f396a (diff) | |
download | prosody-36b9149295afd0c8b48e91c82ef0a1f8ebe7f932.tar.gz prosody-36b9149295afd0c8b48e91c82ef0a1f8ebe7f932.zip |
mod_s2s: Log error message from DNS lookup
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/s2sout.lib.lua | 4 |
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 |