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.
This commit is contained in:
Richard Hansen 2024-05-18 03:17:14 -04:00
parent baec50d134
commit dc92f16eb2

View file

@ -4269,7 +4269,8 @@ sub nic_dnsexit2_update {
my ($status, $message, $srv_message, $srv_details) = @{ $status {$response->{'code'} } }; my ($status, $message, $srv_message, $srv_details) = @{ $status {$response->{'code'} } };
info("Status: %s -- Message: %s", $status, $message); info("Status: %s -- Message: %s", $status, $message);
info("Server Message: %s -- Server Details: %s", $srv_message, $srv_details); 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 # Handle statuses
if ($status eq 'good') { if ($status eq 'good') {