Comparison

net/resolvers/basic.lua @ 12025:6ed7fd28f5e3

net.resolvers: Report when hostname fails IDNA Not a particularly user-friendly error message, but better than "unable to resolve service" and having no clue where it came from.
author Kim Alvefur <zash@zash.se>
date Tue, 07 Dec 2021 21:43:36 +0100
parent 11901:26406ce35e20
child 12129:7a68d5828f3b
comparison
equal deleted inserted replaced
12024:9184bdda22be 12025:6ed7fd28f5e3
21 cb(unpack(next_target, 1, 4)); 21 cb(unpack(next_target, 1, 4));
22 return; 22 return;
23 end 23 end
24 24
25 if not self.hostname then 25 if not self.hostname then
26 -- FIXME report IDNA error 26 self.last_error = "hostname failed IDNA";
27 cb(nil); 27 cb(nil);
28 return; 28 return;
29 end 29 end
30 30
31 local secure = true; 31 local secure = true;