summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2011-02-24 14:10:57 +0100
committersmos <seth.mos@dds.nl>2011-02-24 14:10:57 +0100
commit563b47bfd38ee0cc2458e46be9f6aeed41606593 (patch)
tree3de1d6784dfbc4aea8a61dbc48b40f3efab889a6 /usr/local
parent3acab378e87aa2c17d56a4642f4cf9177512cc12 (diff)
downloadpfsense-563b47bfd38ee0cc2458e46be9f6aeed41606593.zip
pfsense-563b47bfd38ee0cc2458e46be9f6aeed41606593.tar.gz
Make sure to resolve the gateway name before passing it off to the IPsec reload function
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/vpn_ipsec_phase2.php3
1 files changed, 2 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud