Software /
code /
prosody
Diff
net/resolvers/service.lua @ 12808:12bd40b8e105
mod_c2s,mod_s2s: Adapt to XEP-xxxx: Stream Limits Advertisement
Thanks MattJ
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Oct 2022 14:04:56 +0200 |
parent | 12401:c029ddcad258 |
child | 12812:b2d422b88cd6 |
line wrap: on
line diff
--- a/net/resolvers/service.lua Tue Mar 16 18:30:54 2021 +0100 +++ b/net/resolvers/service.lua Thu Oct 20 14:04:56 2022 +0200 @@ -111,12 +111,17 @@ 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