* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 4494939c7e41c144d040daf24a7b2bc0371f1d16
@ 2026-05-27 10:53 Michael Tremer
0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2026-05-27 10:53 UTC (permalink / raw)
To: ipfire-scm
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via 4494939c7e41c144d040daf24a7b2bc0371f1d16 (commit)
from a2022dc1fb46dc599c974a398b8d5c7a6b87c94e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4494939c7e41c144d040daf24a7b2bc0371f1d16
Author: Michael Tremer <michael.tremer@ipfire.org>
Date: Wed May 27 11:52:24 2026 +0100
knot resolver: Don't fail if ISP name servers are not configured
Fixes: #13991 - Knot-resolver does not start when /var/run/dns1 does not exist
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
-----------------------------------------------------------------------
Summary of changes:
config/knot-resolver/config.lua | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Difference in files:
diff --git a/config/knot-resolver/config.lua b/config/knot-resolver/config.lua
index a38a83303..0dddfa9ed 100644
--- a/config/knot-resolver/config.lua
+++ b/config/knot-resolver/config.lua
@@ -162,9 +162,13 @@ function config.load_forwarders(settings)
-- Add provider-assigned servers?
if settings["USE_ISP_NAMESERVERS"] == "on" and proto ~= "TLS" then
for i, path in ipairs({ "/var/run/dns1", "/var/run/dns2" }) do
- for address in io.lines(path) do
- if address ~= "" then
- table.insert(forwarders, {address})
+ local f = io.open(path)
+
+ if f then
+ for address in f:lines() do
+ if address ~= "" then
+ table.insert(forwarders, {address})
+ end
end
end
end
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-27 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-27 10:53 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 4494939c7e41c144d040daf24a7b2bc0371f1d16 Michael Tremer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox