mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix IPV6 error: Fatal error: Cannot unset string offsets in /usr/local/www/system_advanced.php on line 170
This commit is contained in:
parent
dbdbd597d2
commit
8f1e36cae8
@ -167,8 +167,12 @@ if ($_POST) {
|
||||
$config['diag']['ipv6nat']['enable'] = true;
|
||||
$config['diag']['ipv6nat']['ipaddr'] = $_POST['ipv6nat_ipaddr'];
|
||||
} else {
|
||||
unset($config['diag']['ipv6nat']['enable']);
|
||||
unset($config['diag']['ipv6nat']['ipaddr']);
|
||||
if($config['diag']) {
|
||||
if($config['diag']['ipv6nat']) {
|
||||
unset($config['diag']['ipv6nat']['enable']);
|
||||
unset($config['diag']['ipv6nat']['ipaddr']);
|
||||
}
|
||||
}
|
||||
}
|
||||
$oldcert = $config['system']['webgui']['certificate'];
|
||||
$oldkey = $config['system']['webgui']['private-key'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user