From af1332264faf0af77e5f7301b0b1479c7e5bb122 Mon Sep 17 00:00:00 2001 From: David Kerr Date: Tue, 30 Jun 2020 13:29:10 -0400 Subject: [PATCH] Delete unnecessary address check `get_ip` is guaranteed to return a valid IP address or `undef`. --- ddclient.in | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ddclient.in b/ddclient.in index 2491858..9a1313f 100755 --- a/ddclient.in +++ b/ddclient.in @@ -984,12 +984,6 @@ sub update_nics { if !$daemon || opt('verbose'); next; } - if (!is_ipv4($ip)) { - if (!extract_ipv6($ip)) { - warning("malformed IP address (%s)", $ip); - next; - } - } $iplist{$use}{$arg_ip}{$arg_fw}{$arg_if}{$arg_web}{$arg_cmd} = $ip; } $config{$h}{'wantip'} = $ip;