Slave zones can now be called secondary https://github.com/webmin/webmin/issues/2257

This commit is contained in:
Jamie Cameron
2024-08-20 10:55:47 -07:00
parent ffc7dac5f1
commit b71ac3b9a0
3 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,7 @@ my $rev = ($zconf->{'value'} =~ /in-addr\.arpa/i ||
$zconf->{'value'} =~ /\.$ipv6revzone/i);
my $type = &find("type", $zconf->{'members'})->{'value'};
$type = 'master' if ($type eq 'primary');
$type = 'slave' if ($type eq 'secondary');
if (!$in{'confirm'} && $config{'confirm_zone'}) {
# Ask the user if he is sure ..
&ui_print_header(undef, $text{'delete_title'}, "",

View File

@ -23,6 +23,7 @@ my $typedesc = $text{"recs_$in{'type'}"} || $in{'type'};
# Show form for adding a record
my $type = $zone->{'type'};
$type = 'master' if ($type eq 'primary');
$type = 'slave' if ($type eq 'secondary');
my $file = $zone->{'file'};
my $form = 0;
my $shown_create_form;

View File

@ -188,6 +188,7 @@ elsif (@zones && (!@views || !$config{'by_view'})) {
next if (!$t);
$t = "delegation" if ($t eq "delegation-only");
$t = "master" if ($t eq "primary");
$t = "slave" if ($t eq "secondary");
my $zn = $v eq "." ? "<i>$text{'index_root'}</i>"
: &ip6int_to_net(&arpa_to_ip($v));
if ($z->{'view'}) {
@ -353,6 +354,7 @@ elsif (@zones) {
my $t = $z->{'type'};
$t = "delegation" if ($t eq "delegation-only");
$t = "master" if ($t eq "primary");
$t = "slave" if ($t eq "secondary");
my $zn = $v eq "." ? "<i>$text{'index_root'}</i>"
: &ip6int_to_net(&arpa_to_ip($v));
push(@zlinks, "edit_$t.cgi?zone=$z->{'name'}".