From 11d0c84639be90178310cd11cca3dcf0cf34b838 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 31 May 2024 19:03:04 -0400 Subject: [PATCH] dnsexit2: Don't skip remaining hosts on connect error or non-2xx A non-2xx status code might be host-specific, so ddclient should continue with the next host. We could skip the remaining hosts if there is a connection failure, but it doesn't hurt to retry. --- ddclient.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index bcd1197..46ed478 100755 --- a/ddclient.in +++ b/ddclient.in @@ -4217,7 +4217,7 @@ sub nic_dnsexit2_update { ); unless ($reply && header_ok($h, $reply)) { failed("updating %s: Could not connect to %s", $h, $url); - last; + next; }; debug("%s", $reply); (my $http_status) = ($reply =~ m%^s*HTTP/.*\s+(\d+)%i);