Comparison

net/resolvers/service.lua @ 12129:7a68d5828f3b

net.resolvers: Report DNSSEC validation errors instead of NoError Thanks Martin bringing this case to attention
author Kim Alvefur <zash@zash.se>
date Tue, 28 Dec 2021 14:58:09 +0100
parent 12025:6ed7fd28f5e3
child 12401:c029ddcad258
comparison
equal deleted inserted replaced
12128:593e823566e1 12129:7a68d5828f3b
53 answer = {}; 53 answer = {};
54 end 54 end
55 if answer then 55 if answer then
56 if self.extra and not answer.secure then 56 if self.extra and not answer.secure then
57 self.extra.use_dane = false; 57 self.extra.use_dane = false;
58 elseif answer.bogus then
59 self.last_error = "Validation error in SRV lookup";
60 ready();
61 return;
58 end 62 end
59 63
60 if #answer == 0 then 64 if #answer == 0 then
61 if self.extra and self.extra.default_port then 65 if self.extra and self.extra.default_port then
62 table.insert(targets, { self.hostname, self.extra.default_port, self.conn_type, self.extra }); 66 table.insert(targets, { self.hostname, self.extra.default_port, self.conn_type, self.extra });