Mercurial > prosody-hg
comparison net/unbound.lua @ 14224:36aac3343563
net.unbound: Respect use_dnssec=false in case of default TA in lua-event
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 11 Jun 2026 22:30:27 +0200 |
| parents | 37612a03220d |
| children | ce31fdde0ad1 |
comparison
equal
deleted
inserted
replaced
| 14223:37612a03220d | 14224:36aac3343563 |
|---|---|
| 46 for option, default in pairs(libunbound.config) do | 46 for option, default in pairs(libunbound.config) do |
| 47 if conf[option] == nil then | 47 if conf[option] == nil then |
| 48 conf[option] = default; | 48 conf[option] = default; |
| 49 end | 49 end |
| 50 end | 50 end |
| 51 if use_dnssec ~= false then | 51 if use_dnssec == false then |
| 52 conf["trustfile"] = nil; | |
| 53 conf["trusted"] = nil; | |
| 54 elseif use_dnssec ~= false then | |
| 52 if conf["trustfile"] == nil and conf["trusted"] == nil then | 55 if conf["trustfile"] == nil and conf["trusted"] == nil then |
| 53 conf["trustfile"] = trustfile; | 56 conf["trustfile"] = trustfile; |
| 54 end | 57 end |
| 55 end | 58 end |
| 56 return conf; | 59 return conf; |
