net/resolvers/service.lua
changeset 11714 26a8cc9d9eb7
parent 10974 4603697aee50
child 11905 26406ce35e20
--- a/net/resolvers/service.lua	Sun Jul 18 22:46:57 2021 +0200
+++ b/net/resolvers/service.lua	Sun Jul 18 23:25:45 2021 +0200
@@ -50,6 +50,10 @@
 			answer = {};
 		end
 		if answer then
+			if self.extra and not answer.secure then
+				self.extra.use_dane = false;
+			end
+
 			if #answer == 0 then
 				if self.extra and self.extra.default_port then
 					table.insert(targets, { self.hostname, self.extra.default_port, self.conn_type, self.extra });