mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
interfaces: sync up these changes
Better push 'none' than '' down the code, it is more concise for debugging.
This commit is contained in:
parent
54693d9153
commit
e08a49332a
@ -161,7 +161,7 @@ ifgroup_setup();
|
||||
|
||||
$cacheip_file = "/tmp/{$device}_oldip";
|
||||
$cacheip = trim(@file_get_contents($cacheip_file));
|
||||
$intf_ipaddr = $config['interfaces'][$interface]['ipaddr'] ?? '';
|
||||
$intf_ipaddr = $config['interfaces'][$interface]['ipaddr'] ?? 'none';
|
||||
|
||||
if ($ip != $cacheip || (!is_ipaddr($intf_ipaddr) && $intf_ipaddr != 'dhcp')) {
|
||||
system_routing_configure(false, $interface);
|
||||
|
||||
@ -91,7 +91,7 @@ log_msg("IP renwal starting (new: {$ip}, old: ${cacheip}, interface: {$interface
|
||||
|
||||
interfaces_vips_configure($interface, 6);
|
||||
|
||||
if ($config['interfaces'][$interface]['ipaddrv6'] == 'slaac') {
|
||||
if (($config['interfaces'][$interface]['ipaddrv6'] ?? 'none') == 'slaac') {
|
||||
/* require immediate reconfiguration before reconfiguring clients */
|
||||
plugins_configure('dhcp', false, ['inet6']);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user