Skip to content

Commit

Permalink
unbound: prefer-ip6 is defaulting to 'no' for unbound
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fichtner committed Jan 6, 2019
1 parent 77ce3ef commit 53024b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/etc/inc/plugins.inc.d/unbound.inc
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ EOF;
$dnssecstripped = !empty($config['unbound']['dnssecstripped']) ? 'yes' : 'no';
$serveexpired = !empty($config['unbound']['serveexpired']) ? 'yes' : 'no';

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

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

0 comments on commit 53024b5

Please sign in to comment.