Make ipv6revzone available in all CGIs https://github.com/webmin/webmin/issues/369

This commit is contained in:
Jamie Cameron
2016-05-31 20:50:06 -07:00
parent e9f6416d80
commit 8d538fae68
4 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
require './bind8-lib.pl';
&ReadParse();
our $ipv6revzone;
$in{'view'} = 'any' if ($in{'view'} eq '');
$zone = &get_zone_name_or_error($in{'zone'}, $in{'view'});
$dom = $zone->{'name'};

View File

@@ -4,6 +4,7 @@
require './bind8-lib.pl';
&ReadParse();
our $ipv6revzone;
$in{'view'} = 'any' if ($in{'view'} eq '');
$zone = &get_zone_name_or_error($in{'zone'}, $in{'view'});

View File

@@ -6,6 +6,7 @@ use warnings;
our (%config, %text, %in);
our $module_config_directory;
our $bind_version;
our $ipv6revzone = $config{'ipv6_mode'} ? "ip6.arpa" : "ip6.int";
# read_zone_file(file, origin, [previous], [only-soa], [no-chroot])
# Reads a DNS zone file and returns a data structure of records. The origin
@@ -601,8 +602,6 @@ if ($_[0] =~ /^([\d\-\.\/]+)$/) {
return $_[0];
}
my $ipv6revzone = $config{'ipv6_mode'} ? "ip6.arpa" : "ip6.int";
# ip6int_to_net(name)
# Converts an address like a.b.c.d.4.3.2.1.ip6.int. to 1234:dcba::
sub ip6int_to_net

View File

@@ -3,6 +3,7 @@
# Adds or updates a record of some type
require './bind8-lib.pl';
our $ipv6revzone;
&ReadParse();
&error_setup($text{'edit_err'});
$zone = &get_zone_name_or_error($in{'zone'}, $in{'view'});