# HG changeset patch # User Kim Alvefur # Date 1475588784 -7200 # Node ID 8e43a05e237438a9f602ad904110aeaea6e4995c # Parent 65ba769d9f058987b25e3e0c9b9b5799e9915fab mod_s2s: Log error message from DNS lookup diff -r 65ba769d9f05 -r 8e43a05e2374 plugins/mod_s2s/s2sout.lib.lua --- 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