diff options
author | jim-p <jimp@netgate.com> | 2019-01-10 08:59:43 -0500 |
---|---|---|
committer | jim-p <jimp@netgate.com> | 2019-01-10 09:00:23 -0500 |
commit | 4ec6eee8734a9b9f7f7315e0f7977774e3f9ed55 (patch) | |
tree | 099e165e8c211d0263a43295db9c21b6741d08da /src | |
parent | 0d869333a918d7aeb3ea04ea415315fe490a3e3b (diff) | |
download | pfsense-4ec6eee8734a9b9f7f7315e0f7977774e3f9ed55.zip pfsense-4ec6eee8734a9b9f7f7315e0f7977774e3f9ed55.tar.gz |
Fix saving IPv6 over IPv4 tunneling NAT setting. Fixes #9264
(cherry picked from commit 3fcf5ad71216922921801d85d063d360fde5566f)
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/system_advanced_network.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/usr/local/www/system_advanced_network.php b/src/usr/local/www/system_advanced_network.php index d8f6bb6..110b921 100644 --- a/src/usr/local/www/system_advanced_network.php +++ b/src/usr/local/www/system_advanced_network.php @@ -107,11 +107,10 @@ if ($_POST) { $config['diag']['ipv6nat']['enable'] = true; $config['diag']['ipv6nat']['ipaddr'] = $_POST['ipv6nat_ipaddr']; } else { - if ($config['diag']) { - if ($config['diag']['ipv6nat']) { - unset($config['diag']['ipv6nat']['enable']); - unset($config['diag']['ipv6nat']['ipaddr']); - } + if (is_array($config['diag']) && + is_array($config['diag']['ipv6nat'])) { + unset($config['diag']['ipv6nat']['enable']); + unset($config['diag']['ipv6nat']['ipaddr']); } } |