Diff

plugins/mod_s2s/s2sout.lib.lua @ 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
parent 7561:ab8324d3b899
child 8267:42fad8465537
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