Delete unnecessary address check
`get_ip` is guaranteed to return a valid IP address or `undef`.
This commit is contained in:
parent
7e0f696c87
commit
af1332264f
1 changed files with 0 additions and 6 deletions
|
@ -984,12 +984,6 @@ sub update_nics {
|
||||||
if !$daemon || opt('verbose');
|
if !$daemon || opt('verbose');
|
||||||
next;
|
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;
|
$iplist{$use}{$arg_ip}{$arg_fw}{$arg_if}{$arg_web}{$arg_cmd} = $ip;
|
||||||
}
|
}
|
||||||
$config{$h}{'wantip'} = $ip;
|
$config{$h}{'wantip'} = $ip;
|
||||||
|
|
Loading…
Reference in a new issue