From fa77faffbf284ce5e89b9bd36963a747adbf1fed Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 15 Feb 2013 08:20:14 -0200 Subject: [PATCH] Fix #2818. Save information about all phase1 on ipsecpinghosts instead of only the last one --- etc/inc/vpn.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index c299822d54..5f4eff4c72 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -224,9 +224,9 @@ function vpn_ipsec_configure($ipchg = false) $ipsecpinghosts[] = "{$srcip}|{$dstip}|3|||||{$family}|\n"; } } - @file_put_contents("{$g['vardb_path']}/ipsecpinghosts", $ipsecpinghosts); - unset($ipsecpinghosts); } + @file_put_contents("{$g['vardb_path']}/ipsecpinghosts", $ipsecpinghosts); + unset($ipsecpinghosts); } }