Mercurial > prosody-hg
comparison net/resolvers/basic.lua @ 11421:926d53af9a7a
net.resolvers.basic: Disable DANE for now, completely broken
Turns out 'extra' is, at least for mod_s2s, the same table for *all*
connections.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 03 Mar 2021 20:48:54 +0100 |
| parents | f768db80aee0 |
| children | 56a282ecdcf1 |
comparison
equal
deleted
inserted
replaced
| 11420:f768db80aee0 | 11421:926d53af9a7a |
|---|---|
| 34 local n = 3; | 34 local n = 3; |
| 35 local function ready() | 35 local function ready() |
| 36 n = n - 1; | 36 n = n - 1; |
| 37 if n > 0 then return; end | 37 if n > 0 then return; end |
| 38 self.targets = targets; | 38 self.targets = targets; |
| 39 --[[ | |
| 40 -- TODO stash tlsa somewhere per connection | |
| 41 -- FIXME 'extra' here is not per connection | |
| 39 if self.extra and self.extra.use_dane then | 42 if self.extra and self.extra.use_dane then |
| 40 if secure and tlsa[1] then | 43 if secure and tlsa[1] then |
| 41 self.extra.tlsa = tlsa; | |
| 42 self.extra.dane_hostname = self.hostname; | |
| 43 else | |
| 44 self.extra.tlsa = nil; | |
| 45 self.extra.dane_hostname = nil; | |
| 46 end | 44 end |
| 47 end | 45 end |
| 46 --]] | |
| 48 self:next(cb); | 47 self:next(cb); |
| 49 end | 48 end |
| 50 | 49 |
| 51 -- Resolve DNS to target list | 50 -- Resolve DNS to target list |
| 52 local dns_resolver = adns.resolver(); | 51 local dns_resolver = adns.resolver(); |
