diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-06-11 23:56:55 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-06-11 23:56:55 +0200 |
commit | 1c7fd09e4d402af8086b3bd68dcc1fc42509a106 (patch) | |
tree | 1be3944cc249415e7ce1dc92dc6693507bf4c78a /usr/local | |
parent | be37ac8f19ddcf7de504205a92d937398526d824 (diff) | |
download | pfsense-1c7fd09e4d402af8086b3bd68dcc1fc42509a106.zip pfsense-1c7fd09e4d402af8086b3bd68dcc1fc42509a106.tar.gz |
Ticket #4655 Do not behave against the logic of checkbox and description.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/vpn_ipsec_settings.php | 5 |
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") { |