diff options
author | Ermal <eri@pfsense.org> | 2014-09-19 21:58:39 +0200 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-09-19 21:58:39 +0200 |
commit | 130a84c56839b2b36bad0630b2d7f97a39df4fe4 (patch) | |
tree | 09cd85855b351453f23e100991995fc6d0b2f60d /usr/local | |
parent | 8718669cafdb241a7b801489ba0d6dd20f8d1e7e (diff) | |
download | pfsense-130a84c56839b2b36bad0630b2d7f97a39df4fe4.zip pfsense-130a84c56839b2b36bad0630b2d7f97a39df4fe4.tar.gz |
Do the proper action if Apply button is pressed even on the preshared keys page
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/vpn_ipsec_keys.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec_keys.php b/usr/local/www/vpn_ipsec_keys.php index 79f2501..862283b 100644 --- a/usr/local/www/vpn_ipsec_keys.php +++ b/usr/local/www/vpn_ipsec_keys.php @@ -53,6 +53,17 @@ foreach ($config['system']['user'] as $id => $user) { } } +if ($_POST) { + if ($_POST['apply']) { + $retval = 0; + $retval = vpn_ipsec_configure(); + /* reload the filter in the background */ + filter_configure(); + $savemsg = get_std_save_message($retval); + if (is_subsystem_dirty('ipsec')) + clear_subsystem_dirty('ipsec'); + } +} if ($_GET['act'] == "del") { if ($a_secret[$_GET['id']]) { |