Skip to content

Commit

Permalink
Fix reverse record update
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Nov 21, 2012
1 parent b050e03 commit 896e06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bind8/bind8-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ sub find_reverse

# find reverse domain
local @zl = grep { $_->{'type'} ne 'view' } &list_zone_names();
if ($_[1] ne '') {
if ($_[1] ne '' && $_[1] ne 'any') {
@zl = grep { $_->{'view'} && $_->{'viewindex'} == $_[1] } @zl;
}
else {
Expand Down Expand Up @@ -808,7 +808,7 @@ sub find_forward
# find forward domain
local $host = $_[0]; $host =~ s/\.$//;
local @zl = grep { $_->{'type'} ne 'view' } &list_zone_names();
if ($_[1] ne '') {
if ($_[1] ne '' && $_[1] ne 'any') {
@zl = grep { $_->{'view'} && $_->{'viewindex'} == $_[1] } @zl;
}
else {
Expand Down

0 comments on commit 896e06c

Please sign in to comment.