fix hetzner zone problem

This commit is contained in:
Luca Schöneberg 2022-11-21 16:17:08 +01:00
parent f01110aedb
commit 89e30d0aa8

View file

@ -6127,7 +6127,7 @@ sub nic_hetzner_update {
$config{$domain}{"status-ipv$ipv"} = 'failed'; $config{$domain}{"status-ipv$ipv"} = 'failed';
# Get DNS 'A' or 'AAAA' record ID # Get DNS 'A' or 'AAAA' record ID
$url = "https://$config{$key}{'server'}/records?$zone_id"; $url = "https://$config{$key}{'server'}/records";
$reply = geturl(proxy => opt('proxy'), $reply = geturl(proxy => opt('proxy'),
url => $url, url => $url,
headers => $headers headers => $headers
@ -6144,7 +6144,7 @@ sub nic_hetzner_update {
next; next;
} }
# Pull the ID out of the json, messy # Pull the ID out of the json, messy
my ($dns_rec_id) = map { ($_->{name} eq $hostname && $_->{type} eq $type) ? $_->{id} : ()} @{$response->{records}}; my ($dns_rec_id) = map { ($_->{name} eq $hostname && $_->{type} eq $type && &zone_id eq $_{zone_id}) ? $_->{id} : ()} @{$response->{records}};
# Set domain # Set domain
my $http_method=""; my $http_method="";