diff --git a/ddclient.in b/ddclient.in index 40f47590..e88d849c 100755 --- a/ddclient.in +++ b/ddclient.in @@ -7696,13 +7696,12 @@ sub nic_ionos_update { ## should improve to update in one pass for my $h (@_) { local $_l = pushlogctx($h); - my $ip = delete $config{$h}{'wantip'}; + my $ip = delete $config{$h}{'wantipv4'}; info("setting IP address to $ip"); my $url = opt('server', $h) . "/dns/v1/dyndns?q=" . opt('password', $h); my $reply = geturl(proxy => opt('proxy'), url => $url); - last if !header_ok($reply); - if ($reply =~ /200 OK/) { + if (header_ok($reply)) { $recap{$h}{'ip'} = $ip; $recap{$h}{'mtime'} = $now; $recap{$h}{'status'} = 'good';