Fix the IPsec ping hosts file generation. This only worked for the last

tunnel
This commit is contained in:
smos 2011-03-16 12:16:03 +01:00
parent 323f3f9c17
commit ac463c006f

View File

@ -136,6 +136,7 @@ function vpn_ipsec_configure($ipchg = false)
$filterdns_list = array();
if (is_array($a_phase1) && count($a_phase1)) {
$ipsecpinghosts = "";
/* step through each phase1 entry */
foreach ($a_phase1 as $ph1ent) {
if (isset($ph1ent['disabled']))
@ -171,7 +172,6 @@ function vpn_ipsec_configure($ipchg = false)
$rgmap[$ph1ent['remote-gateway']] = $rg;
/* step through each phase2 entry */
$ipsecpinghosts = "";
foreach ($a_phase2 as $ph2ent) {
$ikeid = $ph2ent['ikeid'];