summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2018-05-05 10:48:22 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2018-05-05 10:48:22 (GMT)
commitd76f2f28aaff86ffd7e4a049d5ce7cd91885805f (patch) (side-by-side diff)
tree5d3fa12e9534c2ed2f89d25a9942cd74543727c3
parent3c4af35e7ef01f33662e515859a827091774d64a (diff)
downloadacmeman-d76f2f28aaff86ffd7e4a049d5ce7cd91885805f.tar.gz
acmeman-d76f2f28aaff86ffd7e4a049d5ce7cd91885805f.tar.bz2
Bugfix
* acmeman (resolve): Use cname instead of owner
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xacmeman4
1 files changed, 2 insertions, 2 deletions
diff --git a/acmeman b/acmeman
index f21aa70..7edd5e0 100755
--- a/acmeman
+++ b/acmeman
@@ -915,8 +915,8 @@ sub resolve {
if ($ans->type eq 'A') {
$res{$ans->rdatastr} = 1;
} elsif ($ans->type eq 'CNAME') {
- unless ($cnames{$ans->owner}) { # Avoid eventual loops
- $cnames{$ans->owner} = 1;
+ unless ($cnames{$ans->cname}) { # Avoid eventual loops
+ $cnames{$ans->cname} = 1;
if (my $q = $res->query($ans->cname, 'A')) {
push @answer, ($q->answer());
}

Return to:

Send suggestions and report system problems to the System administrator.