net.resolvers.basic: Record hostname coming from secure SRV records

Will be useful even later...
This commit is contained in:
Kim Alvefur 2022-12-22 00:11:23 +01:00
parent 3c7f73e6c8
commit d257416abe

View file

@ -108,6 +108,8 @@ function methods:next(cb)
self.extra.tlsa = nil; self.extra.tlsa = nil;
self.extra.dane_hostname = nil; self.extra.dane_hostname = nil;
end end
elseif self.extra and self.extra.srv_secure then
self.extra.secure_hostname = self.hostname;
end end
self:next(cb); self:next(cb);