Skip to content

Commit a144404

Browse files
committed
Fix to revert to using standard list domains function
1 parent 539216c commit a144404

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dkim-lib.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ sub enable_dkim
396396

397397
# Find domains that we can enable DKIM for (those with mail and DNS)
398398
&$first_print($text{'dkim_domains'});
399-
my @alldoms = &list_visible_domains();
399+
my @alldoms = &list_domains();
400400
my @doms = grep { &has_dkim_domain($_, $dkim) } @alldoms;
401401
if (@doms && @{$dkim->{'extra'}}) {
402402
&$second_print(&text('dkim_founddomains3', scalar(@doms),
@@ -654,7 +654,7 @@ sub enable_dkim
654654
# Remove from domains that didn't get the DNS records added
655655
my %dnsdoms = map { $_->{'id'}, $_ } @dnsdoms;
656656
my @exdoms = grep { !$dnsdoms{$_->{'id'}} && $_->{'dns'} &&
657-
!&copy_alias_records($_) } &list_visible_domains();
657+
!&copy_alias_records($_) } &list_domains();
658658
if (@exdoms) {
659659
&remove_dkim_dns_records(\@exdoms, $dkim);
660660
}
@@ -958,7 +958,7 @@ sub update_dkim_domains
958958
}
959959

960960
# Enable DKIM for all domains
961-
my @doms = grep { &has_dkim_domain($_, $dkim) } &list_visible_domains();
961+
my @doms = grep { &has_dkim_domain($_, $dkim) } &list_domains();
962962
if (($action eq 'setup' || $action eq 'modify')) {
963963
push(@doms, $d);
964964
}

0 commit comments

Comments
 (0)