From d43fc5fa32a1a30b12be5309c1c2d8bf4fd4f562 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 2 Aug 2022 03:26:00 -0700 Subject: [PATCH] Allow IPv6 addresses for slaves https://forum.virtualmin.com/t/i-need-some-information/116013/37 --- bind8/bind8-lib.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index 370599c80..802a0d51f 100755 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -2834,13 +2834,14 @@ foreach my $slave (@slaves) { my @otherslaves; if ($config{'other_slaves'}) { @otherslaves = grep { $_ ne '' } - map { &to_ipaddress($_->{'host'}) } + map { &to_ipaddress($_->{'host'}) || + &to_ip6address($_->{'host'}) } grep { $_ ne $slave } @slaves; } if ($config{'extra_slaves'}) { push(@otherslaves, grep { $_ ne '' } - map { &to_ipaddress($_) } + map { &to_ipaddress($_) || &to_ipaddress($_) } split(/\s+/, $config{'extra_slaves'})); } if ($moreslaves) {