Software /
code /
prosody
Diff
net/resolvers/basic.lua @ 11708:5ef729c355f3
Revert 926d53af9a7a: Restore DANE support
Previous commit adds a workaround, so this doesn't mutate global state
anymore, only per-connection 'extra' state as originally intended.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 18 Jul 2021 21:57:24 +0200 |
parent | 11430:56a282ecdcf1 |
child | 11901:26406ce35e20 |
line wrap: on
line diff
--- a/net/resolvers/basic.lua Sun Jul 18 21:53:26 2021 +0200 +++ b/net/resolvers/basic.lua Sun Jul 18 21:57:24 2021 +0200 @@ -36,14 +36,15 @@ n = n - 1; if n > 0 then return; end self.targets = targets; - --[[ - -- TODO stash tlsa somewhere per connection - -- FIXME 'extra' here is not per connection if self.extra and self.extra.use_dane then if secure and tlsa[1] then + self.extra.tlsa = tlsa; + self.extra.dane_hostname = self.hostname; + else + self.extra.tlsa = nil; + self.extra.dane_hostname = nil; end end - --]] self:next(cb); end