Commit 0fe677c2 authored by Franco Fichtner's avatar Franco Fichtner

ipsec: do previous for IPsec

Phase 1 add/delete is the best call spot for this as it
defines a "physical" connection.
parent 33550299
...@@ -112,9 +112,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { ...@@ -112,9 +112,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
unset($config['ipsec']['phase1'][$p1entrydel]); unset($config['ipsec']['phase1'][$p1entrydel]);
} }
if (write_config()) { plugins_interfaces(false);
mark_subsystem_dirty('ipsec'); write_config();
} mark_subsystem_dirty('ipsec');
header("Location: vpn_ipsec.php"); header("Location: vpn_ipsec.php");
exit; exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "delphase2" ) { } elseif (!empty($_POST['act']) && $_POST['act'] == "delphase2" ) {
......
...@@ -387,9 +387,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -387,9 +387,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
} }
plugins_interfaces(false);
write_config(); write_config();
mark_subsystem_dirty('ipsec'); mark_subsystem_dirty('ipsec');
header("Location: vpn_ipsec.php"); header("Location: vpn_ipsec.php");
exit; exit;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment