From 102da882622b3da104f155540ff0b6eac11c1d2a Mon Sep 17 00:00:00 2001 From: John Heenan Date: Thu, 25 May 2023 14:23:04 +1000 Subject: [PATCH] Fix for failure to re-start DNS BIND on slave servers See https://github.com/virtualmin/virtualmin-gpl/issues/565 --- bind8/bind8-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index 2224cc114..416fe5150 100755 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -3022,7 +3022,7 @@ my %on = map { $_, 1 } @{$_[0]}; &remote_error_setup(\&slave_error_handler); my @slaveerrs; foreach my $slave (&list_slave_servers()) { - next if (%on && !$on{$slave->{'host'}}); + next if (%on && !$on{$slave->{'nsname'}}); # Find the PID file $slave_error = undef;