aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/resolvers/basic.lua9
1 files changed, 5 insertions, 4 deletions
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