From 2a8b031b7519801a5eae330bcdf48bbbd742621c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 8 Nov 2019 00:54:56 +0100 Subject: net.resolvers: Fix traceback from hostname failing IDNA Related to #1426 --- net/resolvers/basic.lua | 1 + net/resolvers/service.lua | 1 + 2 files changed, 2 insertions(+) (limited to 'net/resolvers') diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua index cafef58b..f37e74a2 100644 --- a/net/resolvers/basic.lua +++ b/net/resolvers/basic.lua @@ -21,6 +21,7 @@ function methods:next(cb) if not self.hostname then -- FIXME report IDNA error cb(nil); + return; end local targets = {}; diff --git a/net/resolvers/service.lua b/net/resolvers/service.lua index bb255c33..34f14cba 100644 --- a/net/resolvers/service.lua +++ b/net/resolvers/service.lua @@ -28,6 +28,7 @@ function methods:next(cb) if not self.hostname then -- FIXME report IDNA error cb(nil); + return; end local targets = {}; -- cgit v1.2.3