|
|
@ -21,9 +21,9 @@ foreach my $host ($h->hosts){ |
|
|
|
$dom = $1; |
|
|
|
$dom = $1; |
|
|
|
} |
|
|
|
} |
|
|
|
my $type = $host->prop('HostType') || 'Self'; |
|
|
|
my $type = $host->prop('HostType') || 'Self'; |
|
|
|
my $le = $host->prop('Letsencrypt') || 'disabled'; |
|
|
|
my $le = $host->prop('Letsencrypt') || 'default'; |
|
|
|
if ($le =~ m/^enabled|yes|1|on$/i || |
|
|
|
if ($le =~ m/^enabled|yes|1|on$/i || |
|
|
|
$type eq 'Self' && $dom eq $DomainName){ |
|
|
|
($type eq 'Self' && $dom eq $DomainName) && ($le !~ m/^disabled|no|0|off$/)){ |
|
|
|
push @names, $host->key; |
|
|
|
push @names, $host->key; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|