mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Initialize array to avoid a PHP error in upgrade_144_to_145(). Fixes #9840
(cherry picked from commit 8e0d33ec48)
This commit is contained in:
parent
88b88d2d76
commit
dc9393ba89
@ -4571,6 +4571,7 @@ function upgrade_144_to_145() {
|
||||
foreach ($config['interfaces'] as $ifname => $ifcfg) {
|
||||
if (isset($ifcfg['enable'])) {
|
||||
if ($ifcfg['ipaddrv6'] == "track6") {
|
||||
init_config_arr(array('dhcpdv6', $ifname, 'range'));
|
||||
$config['dhcpdv6'][$ifname]['enable'] = true;
|
||||
$config['dhcpdv6'][$ifname]['range']['from'] = "::1000";
|
||||
$config['dhcpdv6'][$ifname]['range']['to'] = "::2000";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user