public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 4494939c7e41c144d040daf24a7b2bc0371f1d16
Date: Wed, 27 May 2026 10:53:03 +0000 (UTC)	[thread overview]
Message-ID: <4gQRKq27X7z2xKs@people01.haj.ipfire.org> (raw)

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


                 reply	other threads:[~2026-05-27 10:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4gQRKq27X7z2xKs@people01.haj.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox