Delete unnecessary address check

`get_ip` is guaranteed to return a valid IP address or `undef`.
This commit is contained in:
David Kerr 2020-06-30 13:29:10 -04:00 committed by Richard Hansen
parent 7e0f696c87
commit af1332264f

View file

@ -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;