diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-06-15 02:58:24 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-06-15 02:58:24 +0200 |
commit | da6faa2b5795eb2f9066740f856430e46c65ab42 (patch) | |
tree | 9409ae2b12bd1c2b3ef88fa64d2cc105ed3f32fd /usr/local/www | |
parent | fd90a77fdf54204cf24b960b2e0b8549419be357 (diff) | |
download | pfsense-da6faa2b5795eb2f9066740f856430e46c65ab42.zip pfsense-da6faa2b5795eb2f9066740f856430e46c65ab42.tar.gz |
Ticket #4655 well manually merge pull/1715. Thanks: Phil
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/vpn_ipsec_settings.php | 12 |
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 b37e381..2be7754 100644 --- a/usr/local/www/vpn_ipsec_settings.php +++ b/usr/local/www/vpn_ipsec_settings.php @@ -207,9 +207,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")); |