Comparison

net/resolvers/service.lua @ 12812:b2d422b88cd6

Revert unintentionally committed parts of 12bd40b8e105
author Kim Alvefur <zash@zash.se>
date Wed, 21 Dec 2022 21:34:07 +0100
parent 12808:12bd40b8e105
child 12813:4be161c25e14
comparison
equal deleted inserted replaced
12811:ccc0bdad82cc 12812:b2d422b88cd6
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 answer.bogus then 114 if self.extra and not answer.secure then
115 self.extra.use_dane = false;
116 elseif answer.bogus then
115 self.last_error = "Validation error in SRV lookup"; 117 self.last_error = "Validation error in SRV lookup";
116 ready(); 118 ready();
117 return; 119 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
125 end 120 end
126 121
127 if #answer == 0 then 122 if #answer == 0 then
128 if self.extra and self.extra.default_port then 123 if self.extra and self.extra.default_port then
129 self.resolver = basic.new(self.hostname, self.extra.default_port, self.conn_type, self.extra); 124 self.resolver = basic.new(self.hostname, self.extra.default_port, self.conn_type, self.extra);