aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-12-21 21:34:07 +0100
committerKim Alvefur <zash@zash.se>2022-12-21 21:34:07 +0100
commit62f32cd01d26e3d1bad0d63a9e418838eb9ea212 (patch)
treeac68619200114e660782808ccbe47dbfb81b9668 /net
parente3d771baf90b7fbc33d56e0ed2558c76f6ad9b24 (diff)
downloadprosody-62f32cd01d26e3d1bad0d63a9e418838eb9ea212.tar.gz
prosody-62f32cd01d26e3d1bad0d63a9e418838eb9ea212.zip
Revert unintentionally committed parts of 12bd40b8e105
Diffstat (limited to 'net')
-rw-r--r--net/resolvers/service.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/net/resolvers/service.lua b/net/resolvers/service.lua
index 39031503..a7ce76a3 100644
--- a/net/resolvers/service.lua
+++ b/net/resolvers/service.lua
@@ -111,17 +111,12 @@ function methods:next(cb)
answer = {};
end
if answer then
- if answer.bogus then
+ if self.extra and not answer.secure then
+ self.extra.use_dane = false;
+ elseif 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