Skip to content

Commit 53024b5

Browse files
committed
unbound: prefer-ip6 is defaulting to 'no' for unbound
which makes this precaution a complication as unbound disables IPv6 responses with it as well and we shouldn't set prefer-ip6 to 'yes' to avoid further breakage. PR: https://forum.opnsense.org/index.php?topic=10810.0
1 parent 77ce3ef commit 53024b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/etc/inc/plugins.inc.d/unbound.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ EOF;
229229
$dnssecstripped = !empty($config['unbound']['dnssecstripped']) ? 'yes' : 'no';
230230
$serveexpired = !empty($config['unbound']['serveexpired']) ? 'yes' : 'no';
231231

232-
$do_ip6 = isset($config['system']['ipv6allow']) && !isset($config['system']['prefer_ipv4']) ? 'yes' : 'no';
232+
/* do not touch prefer-ip6 as it is defaulting to 'no' anyway */
233+
$do_ip6 = isset($config['system']['ipv6allow']) ? 'yes' : 'no';
233234

234235
if (isset($config['unbound']['regdhcp'])) {
235236
$include_dhcpleases = 'include: /var/unbound/dhcpleases.conf';

0 commit comments

Comments
 (0)