mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
(legacy) more isset issues in rc.linkup
This commit is contained in:
parent
e4682fffce
commit
640e37f66b
@ -39,8 +39,16 @@ function handle_argument_group($iface, $argument2) {
|
||||
if (!is_array($config['interfaces'][$iface]))
|
||||
return;
|
||||
|
||||
$ipaddr = $config['interfaces'][$iface]['ipaddr'];
|
||||
$ip6addr = $config['interfaces'][$iface]['ipaddrv6'];
|
||||
if (isset($config['interfaces'][$iface]['ipaddr'])) {
|
||||
$ipaddr = $config['interfaces'][$iface]['ipaddr'];
|
||||
} else {
|
||||
$ipaddr = null ;
|
||||
}
|
||||
if (isset($config['interfaces'][$iface]['ipaddrv6'])) {
|
||||
$ip6addr = $config['interfaces'][$iface]['ipaddrv6'];
|
||||
} else {
|
||||
$ip6addr = null;
|
||||
}
|
||||
$staticv4 = false;
|
||||
if (empty($ipaddr))
|
||||
$staticv4 = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user