comparison mod_s2s_auth_dane/mod_s2s_auth_dane.lua @ 1673:aac5e56615ce

mod_s2s_auth_dane: Demote log message about failure to ASCII-ify hostname from error to warning
author Kim Alvefur <zash@zash.se>
date Mon, 13 Apr 2015 13:35:37 +0200
parents 9a3d2f1479a4
children 7f4c64cfed09
comparison
equal deleted inserted replaced
1672:d9fcf9d8e787 1673:aac5e56615ce
72 -- so we do a SRV lookup and then request TLSA records for each SRV 72 -- so we do a SRV lookup and then request TLSA records for each SRV
73 -- Most servers will probably use the same certificate on outgoing 73 -- Most servers will probably use the same certificate on outgoing
74 -- and incoming connections, so this should work well 74 -- and incoming connections, so this should work well
75 local name = host_session.from_host and idna_to_ascii(host_session.from_host); 75 local name = host_session.from_host and idna_to_ascii(host_session.from_host);
76 if not name then 76 if not name then
77 module:log("error", "Could not convert '%s' to ASCII for DNS lookup", tostring(host_session.from_host)); 77 module:log("warn", "Could not convert '%s' to ASCII for DNS lookup", tostring(host_session.from_host));
78 return; 78 return;
79 end 79 end
80 host_session.dane = dns_lookup(function (answer, err) 80 host_session.dane = dns_lookup(function (answer, err)
81 host_session.dane = false; -- Mark that we already did the lookup 81 host_session.dane = false; -- Mark that we already did the lookup
82 82
83 if not answer then 83 if not answer then
84 module:log("debug", "Resolver error: %s", tostring(err)); 84 module:log("debug", "Resolver error: %s", tostring(err));