From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4gQRKr0BjVz2y5m for ; Wed, 27 May 2026 10:53:04 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "mail01.haj.ipfire.org", Issuer "R12" (not verified)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4gQRKq6yBfz2xJk for ; Wed, 27 May 2026 10:53:03 +0000 (UTC) Received: from people01.haj.ipfire.org (people01.haj.ipfire.org [172.28.1.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (Client CN "people01.haj.ipfire.org", Issuer "E8" (not verified)) by mail01.ipfire.org (Postfix) with ESMTPS id 4gQRKq2s6sz1xn for ; Wed, 27 May 2026 10:53:03 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1779879183; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=m6Sm3/TR/omIo/WhpiFvbEUV/B7ivZG/qzZFofoBGQo=; b=dGAfSoAGHQ5/j+gz1JWJV9BAeEEFlrxUTHrXWPdDyyiwmNbqbEqTs8Reo8A1rhLuOrw+pe DDQwAf5kLhIRlXBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1779879183; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=m6Sm3/TR/omIo/WhpiFvbEUV/B7ivZG/qzZFofoBGQo=; b=vZnIBoiEREYsLUQOYtyu0MYyPr/Owzg2mpJnqMDKyAmstrlTvCI4M4Xl7CWCGSmJC2wT1D GjVh/U+a4ASrKo3AVLqgOPnOkZXSHUnY2NG98BL+G/yLOzRWnFLZrgvYETD3Huimj02/VN R+baAm9nRg6r4893/amVHdcnBclby8W4knjKPGAlhkI1ltKxQS7zJbw+MWnLu7x8tYRKcs JKMid/6v4Ml/N4tRVuB4FiVoWH/Wzsl9xAK705Qp0B63Jcv7ZJjZmUxGXbzuC7bj5t6zNN rmOEU+koaBl1calsHZKNqGYKNgq++GXHhrIBwajXrqIq1L5WuCxkzPKlx3IWCw== Received: by people01.haj.ipfire.org (Postfix, from userid 1000) id 4gQRKq27X7z2xKs; Wed, 27 May 2026 10:53:03 +0000 (UTC) To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 4494939c7e41c144d040daf24a7b2bc0371f1d16 X-Git-Refname: refs/heads/next X-Git-Reftype: branch X-Git-Oldrev: a2022dc1fb46dc599c974a398b8d5c7a6b87c94e X-Git-Newrev: 4494939c7e41c144d040daf24a7b2bc0371f1d16 Message-Id: <4gQRKq27X7z2xKs@people01.haj.ipfire.org> Date: Wed, 27 May 2026 10:53:03 +0000 (UTC) From: Michael Tremer Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: 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 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 ----------------------------------------------------------------------- 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