Software /
code /
prosody
Diff
net/resolvers/service.lua @ 12812:b2d422b88cd6
Revert unintentionally committed parts of 12bd40b8e105
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 21 Dec 2022 21:34:07 +0100 |
parent | 12808:12bd40b8e105 |
child | 12813:4be161c25e14 |
line wrap: on
line diff
--- a/net/resolvers/service.lua Wed Nov 09 19:10:16 2022 +0100 +++ b/net/resolvers/service.lua Wed Dec 21 21:34:07 2022 +0100 @@ -111,17 +111,12 @@ 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