Software /
code /
prosody
Changeset
7685:8e43a05e2374
mod_s2s: Log error message from DNS lookup
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 04 Oct 2016 15:46:24 +0200 |
parents | 7684:65ba769d9f05 |
children | 7686:8d6f367bed8c 7688:88ad2d5bcf80 |
files | plugins/mod_s2s/s2sout.lib.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s/s2sout.lib.lua Sat Oct 01 21:51:07 2016 +0200 +++ b/plugins/mod_s2s/s2sout.lib.lua Tue Oct 04 15:46:24 2016 +0200 @@ -176,6 +176,8 @@ 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 @@ 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