aboutsummaryrefslogtreecommitdiffstats
path: root/net/resolvers
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-07 21:43:36 +0100
committerKim Alvefur <zash@zash.se>2021-12-07 21:43:36 +0100
commit96b6f68b237669826e9c39d9216f176f12b78fd3 (patch)
tree7a70b335084397bd28465d30a20e75486940c352 /net/resolvers
parentaa0b6f765aef1ff89e763fecb46d014d82f67ec3 (diff)
downloadprosody-96b6f68b237669826e9c39d9216f176f12b78fd3.tar.gz
prosody-96b6f68b237669826e9c39d9216f176f12b78fd3.zip
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.
Diffstat (limited to 'net/resolvers')
-rw-r--r--net/resolvers/basic.lua2
-rw-r--r--net/resolvers/service.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua
index b62440e1..495a348e 100644
--- a/net/resolvers/basic.lua
+++ b/net/resolvers/basic.lua
@@ -23,7 +23,7 @@ function methods:next(cb)
end
if not self.hostname then
- -- FIXME report IDNA error
+ self.last_error = "hostname failed IDNA";
cb(nil);
return;
end
diff --git a/net/resolvers/service.lua b/net/resolvers/service.lua
index 4988f423..b476cb2c 100644
--- a/net/resolvers/service.lua
+++ b/net/resolvers/service.lua
@@ -34,7 +34,7 @@ function methods:next(cb)
end
if not self.hostname then
- -- FIXME report IDNA error
+ self.last_error = "hostname failed IDNA";
cb(nil);
return;
end