diff options
author | smos <seth.mos@dds.nl> | 2011-02-24 14:10:57 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-02-24 14:10:57 +0100 |
commit | 563b47bfd38ee0cc2458e46be9f6aeed41606593 (patch) | |
tree | 3de1d6784dfbc4aea8a61dbc48b40f3efab889a6 /usr/local/www/vpn_ipsec_phase2.php | |
parent | 3acab378e87aa2c17d56a4642f4cf9177512cc12 (diff) | |
download | pfsense-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/www/vpn_ipsec_phase2.php')
-rw-r--r-- | usr/local/www/vpn_ipsec_phase2.php | 3 |
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); } |