Mercurial > prosody-hg
comparison net/unbound.lua @ 14229:ce31fdde0ad1 default tip
net.unbound: Simplify conditional
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 13 Jun 2026 11:35:18 +0200 |
| parents | 36aac3343563 |
| children |
comparison
equal
deleted
inserted
replaced
| 14228:84a72e9cb610 | 14229:ce31fdde0ad1 |
|---|---|
| 49 end | 49 end |
| 50 end | 50 end |
| 51 if use_dnssec == false then | 51 if use_dnssec == false then |
| 52 conf["trustfile"] = nil; | 52 conf["trustfile"] = nil; |
| 53 conf["trusted"] = nil; | 53 conf["trusted"] = nil; |
| 54 elseif use_dnssec ~= false then | 54 elseif conf["trustfile"] == nil and conf["trusted"] == nil then |
| 55 if conf["trustfile"] == nil and conf["trusted"] == nil then | 55 conf["trustfile"] = trustfile; |
| 56 conf["trustfile"] = trustfile; | |
| 57 end | |
| 58 end | 56 end |
| 59 return conf; | 57 return conf; |
| 60 end | 58 end |
| 61 | 59 |
| 62 local unbound_config; | 60 local unbound_config; |
