summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/vpn_ipsec_settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec_settings.php b/usr/local/www/vpn_ipsec_settings.php
index 024fe2c..5b172bc 100644
--- a/usr/local/www/vpn_ipsec_settings.php
+++ b/usr/local/www/vpn_ipsec_settings.php
@@ -171,9 +171,9 @@ if ($_POST) {
}
if ($_POST['noshuntlaninterfaces'] == "yes") {
- $config['ipsec']['noshuntlaninterfaces'] = true;
- } elseif (isset($config['ipsec']['noshuntlaninterfaces'])) {
unset($config['ipsec']['noshuntlaninterfaces']);
+ } else {
+ $config['ipsec']['noshuntlaninterfaces'] = true;
}
if ($_POST['acceptunencryptedmainmode'] == "yes") {
OpenPOWER on IntegriCloud