aboutsummaryrefslogtreecommitdiffstats
path: root/net/resolvers/basic.lua
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/basic.lua
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/basic.lua')
-rw-r--r--net/resolvers/basic.lua2
1 files changed, 1 insertions, 1 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