From fb872c8f2e906c528180aa0f5c8cee27cfaa3264 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 11 Nov 2022 09:25:07 +0200 Subject: [PATCH] ipsec: remove ancient side effect host route removal --- src/www/vpn_ipsec_phase1.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/www/vpn_ipsec_phase1.php b/src/www/vpn_ipsec_phase1.php index 18bb1a6e0..7ca2ab712 100644 --- a/src/www/vpn_ipsec_phase1.php +++ b/src/www/vpn_ipsec_phase1.php @@ -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; }