From 360eda6cd3551f5023c7f5c0d5100bf8b6320f69 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 18 Jul 2021 21:57:24 +0200 Subject: 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. --- net/resolvers/basic.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'net') diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua index 3c0e69f5..34f1e1c7 100644 --- a/net/resolvers/basic.lua +++ b/net/resolvers/basic.lua @@ -36,14 +36,15 @@ function methods:next(cb) 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 -- cgit v1.2.3