variable declared twice.

This commit is contained in:
David Kerr 2020-06-28 15:39:06 -04:00
parent 70d7ff3f4e
commit 6106c41ef5

View file

@ -942,7 +942,7 @@ sub update_nics {
if (exists $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};
} else {
my $ip = get_ip($use, $h) // '';
$ip = get_ip($use, $h) // '';
if (!$ip) {
warning("unable to determine IP address")
if !$daemon || opt('verbose');