From 563b47bfd38ee0cc2458e46be9f6aeed41606593 Mon Sep 17 00:00:00 2001 From: smos Date: Thu, 24 Feb 2011 14:10:57 +0100 Subject: Make sure to resolve the gateway name before passing it off to the IPsec reload function --- usr/local/www/vpn_ipsec_phase2.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/vpn_ipsec_phase2.php b/usr/local/www/vpn_ipsec_phase2.php index b20fe0c..d45b0d6 100644 --- a/usr/local/www/vpn_ipsec_phase2.php +++ b/usr/local/www/vpn_ipsec_phase2.php @@ -141,7 +141,7 @@ if ($_POST) { } } -/* TODO : Validate enabled phase2's are not duplicates */ + /* TODO : Validate enabled phase2's are not duplicates */ $ealgos = pconfig_to_ealgos($pconfig); @@ -184,6 +184,7 @@ if ($_POST) { if(is_array($ph2ent)) { ipsec_lookup_phase1($ph2ent, $ph1ent); $old_ph1ent = $ph1ent; + $old_ph1ent['remote-gateway'] = resolve_retry($old_ph1ent['remote-gateway']); reload_tunnel_spd_policy ($ph1ent, $ph2ent, $old_ph1ent, $old_ph2ent); } -- cgit v1.1