summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_settings.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-06-11 23:56:55 +0200
committerErmal LUÇI <eri@pfsense.org>2015-06-11 23:56:55 +0200
commit1c7fd09e4d402af8086b3bd68dcc1fc42509a106 (patch)
tree1be3944cc249415e7ce1dc92dc6693507bf4c78a /usr/local/www/vpn_ipsec_settings.php
parentbe37ac8f19ddcf7de504205a92d937398526d824 (diff)
downloadpfsense-1c7fd09e4d402af8086b3bd68dcc1fc42509a106.zip
pfsense-1c7fd09e4d402af8086b3bd68dcc1fc42509a106.tar.gz
Ticket #4655 Do not behave against the logic of checkbox and description.
Diffstat (limited to 'usr/local/www/vpn_ipsec_settings.php')
-rw-r--r--usr/local/www/vpn_ipsec_settings.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec_settings.php b/usr/local/www/vpn_ipsec_settings.php
index 023d202..0d6eedd 100644
--- a/usr/local/www/vpn_ipsec_settings.php
+++ b/usr/local/www/vpn_ipsec_settings.php
@@ -163,10 +163,11 @@ if ($_POST) {
unset($config['ipsec']['makebeforebreak']);
}
+ /* The wierd logic here is to avoid negative policies when checked #4655 */
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