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') {
unset($config['ipsec']['phase1'][$p1entrydel]);
}
if (write_config()) {
mark_subsystem_dirty('ipsec');
}
plugins_interfaces(false);
write_config();
mark_subsystem_dirty('ipsec');
header("Location: vpn_ipsec.php");
exit;
} elseif (!empty($_POST['act']) && $_POST['act'] == "delphase2" ) {
......
......@@ -387,9 +387,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
plugins_interfaces(false);
write_config();
mark_subsystem_dirty('ipsec');
header("Location: vpn_ipsec.php");
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