Skip to content

Commit

Permalink
Ensure it works with all HTTP protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonjr committed Sep 13, 2024
1 parent bcaf18a commit db1fbd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ddclient.in
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit db1fbd2

Please sign in to comment.