summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_keys.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-09-19 21:58:39 +0200
committerErmal <eri@pfsense.org>2014-09-19 21:58:39 +0200
commit130a84c56839b2b36bad0630b2d7f97a39df4fe4 (patch)
tree09cd85855b351453f23e100991995fc6d0b2f60d /usr/local/www/vpn_ipsec_keys.php
parent8718669cafdb241a7b801489ba0d6dd20f8d1e7e (diff)
downloadpfsense-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/www/vpn_ipsec_keys.php')
-rw-r--r--usr/local/www/vpn_ipsec_keys.php11
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']]) {
OpenPOWER on IntegriCloud