Diff

net/resolvers/service.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
line wrap: on
line diff
--- a/net/resolvers/service.lua	Tue Dec 07 16:23:23 2021 +0000
+++ b/net/resolvers/service.lua	Tue Dec 07 21:43:36 2021 +0100
@@ -34,7 +34,7 @@
 	end
 
 	if not self.hostname then
-		-- FIXME report IDNA error
+		self.last_error = "hostname failed IDNA";
 		cb(nil);
 		return;
 	end