Changeset

10400:4c2d789a106b 0.11

net.resolvers: Fix traceback from hostname failing IDNA Related to #1426
author Kim Alvefur <zash@zash.se>
date Fri, 08 Nov 2019 00:54:56 +0100
parents 10390:82705ec87253
children 10401:1ef1f6c43c5b 10410:659b577f280c
files net/resolvers/basic.lua net/resolvers/service.lua
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/resolvers/basic.lua	Mon Nov 04 00:29:49 2019 +0100
+++ b/net/resolvers/basic.lua	Fri Nov 08 00:54:56 2019 +0100
@@ -21,6 +21,7 @@
 	if not self.hostname then
 		-- FIXME report IDNA error
 		cb(nil);
+		return;
 	end
 
 	local targets = {};
--- a/net/resolvers/service.lua	Mon Nov 04 00:29:49 2019 +0100
+++ b/net/resolvers/service.lua	Fri Nov 08 00:54:56 2019 +0100
@@ -28,6 +28,7 @@
 	if not self.hostname then
 		-- FIXME report IDNA error
 		cb(nil);
+		return;
 	end
 
 	local targets = {};