From d391f41074e5d8738ae75f5c9a080c8eecf01a0c Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 19 Jul 2024 18:43:22 -0400 Subject: [PATCH] domeneshop: Treat all 2xx as success --- ddclient.in | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/ddclient.in b/ddclient.in index 220ebd6..55b8eaf 100755 --- a/ddclient.in +++ b/ddclient.in @@ -4328,18 +4328,10 @@ sub nic_domeneshop_update { next; } next if !header_ok($h, $reply); - my @reply = split /\n/, $reply; - my $status = shift(@reply); - my $message = pop(@reply); - if ($status =~ /204/) { - $config{$h}{'ip'} = $ip; - $config{$h}{'mtime'} = $now; - $config{$h}{'status'} = 'good'; - success("$h: IP address set to $ip"); - } else { - $config{$h}{'status'} = 'failed'; - failed("$h: Server said: $status $message"); - } + $config{$h}{'ip'} = $ip; + $config{$h}{'mtime'} = $now; + $config{$h}{'status'} = 'good'; + success("$h: IP address set to $ip"); } }