From dc92f16eb20d8d1376afc308371d31036cdc23c4 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 18 May 2024 03:17:14 -0400 Subject: [PATCH] dnsexit2: Update new `status-ipv*` vars, not legacy `status` The `dnsexit2` protocol reads the IP addresses from the new `ipv4` and `ipv6` variables, so it should update the `status-ipv4` and `status-ipv6` variables. --- ddclient.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ddclient.in b/ddclient.in index 5ef3b51..29bc1c0 100755 --- a/ddclient.in +++ b/ddclient.in @@ -4269,7 +4269,8 @@ sub nic_dnsexit2_update { my ($status, $message, $srv_message, $srv_details) = @{ $status {$response->{'code'} } }; info("Status: %s -- Message: %s", $status, $message); info("Server Message: %s -- Server Details: %s", $srv_message, $srv_details); - $config{$h}{'status'} = $status; + $config{$h}{'status-ipv4'} = $status if $ipv4; + $config{$h}{'status-ipv6'} = $status if $ipv6; # Handle statuses if ($status eq 'good') {