Software /
code /
prosody
Comparison
net/resolvers/service.lua @ 12808:12bd40b8e105
mod_c2s,mod_s2s: Adapt to XEP-xxxx: Stream Limits Advertisement
Thanks MattJ
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Oct 2022 14:04:56 +0200 |
parent | 12401:c029ddcad258 |
child | 12812:b2d422b88cd6 |
comparison
equal
deleted
inserted
replaced
12807:f0f7b0c61465 | 12808:12bd40b8e105 |
---|---|
109 if not answer and not err then | 109 if not answer and not err then |
110 -- net.adns returns nil if there are zero records or nxdomain | 110 -- net.adns returns nil if there are zero records or nxdomain |
111 answer = {}; | 111 answer = {}; |
112 end | 112 end |
113 if answer then | 113 if answer then |
114 if self.extra and not answer.secure then | 114 if answer.bogus then |
115 self.extra.use_dane = false; | |
116 elseif answer.bogus then | |
117 self.last_error = "Validation error in SRV lookup"; | 115 self.last_error = "Validation error in SRV lookup"; |
118 ready(); | 116 ready(); |
119 return; | 117 return; |
118 elseif self.extra then | |
119 if answer.secure then | |
120 self.extra.secure_hostname = "HMMMMMMM"; | |
121 else | |
122 -- Insecure results, so no DANE | |
123 self.extra.use_dane = false; | |
124 end | |
120 end | 125 end |
121 | 126 |
122 if #answer == 0 then | 127 if #answer == 0 then |
123 if self.extra and self.extra.default_port then | 128 if self.extra and self.extra.default_port then |
124 self.resolver = basic.new(self.hostname, self.extra.default_port, self.conn_type, self.extra); | 129 self.resolver = basic.new(self.hostname, self.extra.default_port, self.conn_type, self.extra); |