From e90eb71c1ad1e22cf36253acddc5a7ec885ed8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20Sch=C3=B6neberg?= Date: Mon, 2 Jan 2023 11:51:03 +0100 Subject: [PATCH] Revert "fix hetzner zone problem" --- ddclient.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddclient.in b/ddclient.in index 22580bb..0653fae 100755 --- a/ddclient.in +++ b/ddclient.in @@ -6216,7 +6216,7 @@ sub nic_hetzner_update { $config{$domain}{"status-ipv$ipv"} = 'failed'; # Get DNS 'A' or 'AAAA' record ID - $url = "https://$config{$key}{'server'}/records"; + $url = "https://$config{$key}{'server'}/records?$zone_id"; $reply = geturl(proxy => opt('proxy'), url => $url, headers => $headers @@ -6233,7 +6233,7 @@ sub nic_hetzner_update { next; } # Pull the ID out of the json, messy - my ($dns_rec_id) = map { ($_->{name} eq $hostname && $_->{type} eq $type && &zone_id eq $_{zone_id}) ? $_->{id} : ()} @{$response->{records}}; + my ($dns_rec_id) = map { ($_->{name} eq $hostname && $_->{type} eq $type) ? $_->{id} : ()} @{$response->{records}}; # Set domain my $http_method="";