Skip to content

Commit

Permalink
Use correct variable for domain name #1
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jul 1, 2016
1 parent 0a57870 commit 4be96a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ sub feature_delete
my $file = &bind8::find("file", $z->{'members'});
my $fn = $file->{'values'}->[0];
my $zonefile = &bind8::make_chroot($fn);
my @recs = &bind8::read_zone_file($fn, $newzonename);
my @recs = &bind8::read_zone_file($fn, $d->{'dom'});
my @mx = grep { $_->{'type'} eq 'MX' &&
$_->{'name'} eq $_[0]->{'dom'}."." ||
$_->{'name'} eq $d->{'dom'}."." ||
$_->{'type'} eq 'A' &&
$_->{'name'} eq "mail.".$_[0]->{'dom'}."." } @recs;
$_->{'name'} eq "mail.".$d->{'dom'}."." } @recs;
if (@mx) {
&$virtual_server::first_print(
$virtual_server::text{'save_dns5'});
Expand Down

0 comments on commit 4be96a2

Please sign in to comment.