mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
ipsec: remove ancient side effect host route removal
This commit is contained in:
parent
a2112455a3
commit
fb872c8f2e
@ -473,16 +473,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$a_phase1[] = $ph1ent;
|
||||
}
|
||||
|
||||
/* if the remote gateway changed and the interface is not WAN then remove route */
|
||||
if ($pconfig['interface'] != 'wan') {
|
||||
if ($old_ph1ent['remote-gateway'] != $pconfig['remote-gateway']) {
|
||||
/* XXX does this even apply? only use of system.inc at the top! */
|
||||
system_host_route($old_ph1ent['remote-gateway'], $old_ph1ent['remote-gateway'], true, false);
|
||||
}
|
||||
}
|
||||
|
||||
write_config();
|
||||
mark_subsystem_dirty('ipsec');
|
||||
|
||||
header(url_safe('Location: /ui/ipsec/tunnels'));
|
||||
exit;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user