aboutsummaryrefslogtreecommitdiffstats
path: root/net/resolvers
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-20 14:04:56 +0200
committerKim Alvefur <zash@zash.se>2022-10-20 14:04:56 +0200
commita46ae8cb89d83b98a5e3f8da1d958905b2cb78ac (patch)
tree3fbee31fc79cb0dd3a92ba31017caa958d4d4064 /net/resolvers
parentd4f4f76c3c703a323a712119e60eb3dbe053cbbd (diff)
downloadprosody-a46ae8cb89d83b98a5e3f8da1d958905b2cb78ac.tar.gz
prosody-a46ae8cb89d83b98a5e3f8da1d958905b2cb78ac.zip
mod_c2s,mod_s2s: Adapt to XEP-xxxx: Stream Limits Advertisement
Thanks MattJ
Diffstat (limited to 'net/resolvers')
-rw-r--r--net/resolvers/service.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/net/resolvers/service.lua b/net/resolvers/service.lua
index a7ce76a3..39031503 100644
--- a/net/resolvers/service.lua
+++ b/net/resolvers/service.lua
@@ -111,12 +111,17 @@ function methods:next(cb)
answer = {};
end
if answer then
- if self.extra and not answer.secure then
- self.extra.use_dane = false;
- elseif answer.bogus then
+ if answer.bogus then
self.last_error = "Validation error in SRV lookup";
ready();
return;
+ elseif self.extra then
+ if answer.secure then
+ self.extra.secure_hostname = "HMMMMMMM";
+ else
+ -- Insecure results, so no DANE
+ self.extra.use_dane = false;
+ end
end
if #answer == 0 then