Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxwin committed Apr 22, 2017
1 parent 6ccbc8c commit 5e3e722
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contrib/Listeners/Named/20_named_dualstack.pl
Expand Up @@ -72,6 +72,7 @@ package Listener::Bind9::DualStack;
return 0 unless @ipList;

my @formattedEntries = ( );

for my $ip(@ipList) {
for my $name('@', 'ftp', 'mail', 'imap', 'pop', 'pop3', 'relay', 'smtp') {
push @formattedEntries, $net->getAddrVersion( $ip ) eq 'ipv6'
Expand Down Expand Up @@ -115,7 +116,6 @@ package Listener::Bind9::DualStack;
return 0 unless @ipList;

my @formattedEntries = ( );
push @formattedEntries, '; dualstack DNS entries BEGIN';

for my $ip(@ipList) {
for my $name('@', 'ftp', 'mail', 'imap', 'pop', 'pop3', 'relay', 'smtp') {
Expand All @@ -124,8 +124,6 @@ package Listener::Bind9::DualStack;
}
}

push @formattedEntries, '; dualstack DNS entries END';

${$wrkDbFileContent} = replaceBloc(
"; sub [$data->{'DOMAIN_NAME'}] entry BEGIN\n",
"; sub [$data->{'DOMAIN_NAME'}] entry ENDING\n",
Expand Down

0 comments on commit 5e3e722

Please sign in to comment.