aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-12-22 00:11:23 +0100
committerKim Alvefur <zash@zash.se>2022-12-22 00:11:23 +0100
commitd257416abe54466f66f6c92d95f48141e556fdb5 (patch)
treef51899f7eef34dabe0319114a8104e58c0fa1d0a /net
parent3c7f73e6c86a62275414f0525d0bdba1a2df7b7c (diff)
downloadprosody-d257416abe54466f66f6c92d95f48141e556fdb5.tar.gz
prosody-d257416abe54466f66f6c92d95f48141e556fdb5.zip
net.resolvers.basic: Record hostname coming from secure SRV records
Will be useful even later...
Diffstat (limited to 'net')
-rw-r--r--net/resolvers/basic.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/resolvers/basic.lua b/net/resolvers/basic.lua
index e58165ba..3ef916a2 100644
--- a/net/resolvers/basic.lua
+++ b/net/resolvers/basic.lua
@@ -108,6 +108,8 @@ function methods:next(cb)
self.extra.tlsa = nil;
self.extra.dane_hostname = nil;
end
+ elseif self.extra and self.extra.srv_secure then
+ self.extra.secure_hostname = self.hostname;
end
self:next(cb);