From fe513f733d7ee87597700849d25483119408b17f Mon Sep 17 00:00:00 2001 From: David Kerr Date: Tue, 30 Jun 2020 13:29:10 -0400 Subject: [PATCH] Use `is_ipv6`, not `extract_ipv6`, to validate IPv6 address --- ddclient.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ddclient.in b/ddclient.in index 9a1313f..36bda0d 100755 --- a/ddclient.in +++ b/ddclient.in @@ -1930,9 +1930,7 @@ sub check_value { return undef if $value eq ""; } elsif ($type eq T_IP) { - if (!extract_ipv6($value)) { - return undef if !is_ipv4($value); - } + return undef if !is_ipv4($value) && !is_ipv6($value); } return $value; }