summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_settings.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-06-15 02:58:24 +0200
committerErmal LUÇI <eri@pfsense.org>2015-06-15 02:58:39 +0200
commitd26955ff8b9e3b2732dcdda3965a4275d6a40ad3 (patch)
treeb283572171697ac1c3e4424469bf0d2fc6ab70ff /usr/local/www/vpn_ipsec_settings.php
parent26b8101b4f2d39e2f342237f7fa11ef9cce4b5f8 (diff)
downloadpfsense-d26955ff8b9e3b2732dcdda3965a4275d6a40ad3.zip
pfsense-d26955ff8b9e3b2732dcdda3965a4275d6a40ad3.tar.gz
Ticket #4655 well manually merge pull/1715. Thanks: Phil
Diffstat (limited to 'usr/local/www/vpn_ipsec_settings.php')
-rw-r--r--usr/local/www/vpn_ipsec_settings.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr/local/www/vpn_ipsec_settings.php b/usr/local/www/vpn_ipsec_settings.php
index 456eb7b..8d1f864 100644
--- a/usr/local/www/vpn_ipsec_settings.php
+++ b/usr/local/www/vpn_ipsec_settings.php
@@ -215,9 +215,15 @@ if ($_POST) {
header("Location: vpn_ipsec_settings.php");
return;
- } else
- /* NOTE: Do not be smart here check #4655 */
- $pconfig['noshuntlaninterfaces'] = isset($config['ipsec']['noshuntlaninterfaces']);
+ }
+
+ // The logic value sent by $POST is opposite to the way it is stored in the config.
+ // Reset the $pconfig value so it reflects the opposite of what was $POSTed.
+ if ($_POST['noshuntlaninterfaces'] == "yes") {
+ $pconfig['noshuntlaninterfaces'] = false;
+ } else {
+ $pconfig['noshuntlaninterfaces'] = true;
+ }
}
$pgtitle = array(gettext("VPN"), gettext("IPsec"), gettext("Settings"));
OpenPOWER on IntegriCloud