Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
11707:61759372be26 | 11708:5ef729c355f3 |
---|---|
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 | |
42 if self.extra and self.extra.use_dane then | 39 if self.extra and self.extra.use_dane then |
43 if secure and tlsa[1] then | 40 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; | |
44 end | 46 end |
45 end | 47 end |
46 --]] | |
47 self:next(cb); | 48 self:next(cb); |
48 end | 49 end |
49 | 50 |
50 -- Resolve DNS to target list | 51 -- Resolve DNS to target list |
51 local dns_resolver = adns.resolver(); | 52 local dns_resolver = adns.resolver(); |