summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-07-04 16:22:41 +0000
committerBill Marquette <billm@pfsense.org>2005-07-04 16:22:41 +0000
commitd8bde4c51d36485e5c4443befc799cf7ce6a3e45 (patch)
treeebc1f0869a230886f3a09ae174e13a7ac583d34d /etc/inc/vpn.inc
parent39a7c0c344985e69e8046880844f527a82fd96e7 (diff)
downloadpfsense-d8bde4c51d36485e5c4443befc799cf7ce6a3e45.zip
pfsense-d8bde4c51d36485e5c4443befc799cf7ce6a3e45.tar.gz
Clean up foreach() warnings if you don't use sasyncd
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 07fdc17..7f9ad42 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -39,6 +39,7 @@ function vpn_ipsec_failover_configure() {
$sasyncd_text = "";
+ if(isset($config['installedpackages']['sasyncd']['config']))
foreach($config['installedpackages']['sasyncd']['config'] as $sasyncd) {
$enabled = isset($sasyncd['enable']);
if(!$enabled)
@@ -66,6 +67,7 @@ function vpn_ipsec_configure($ipchg = false) {
$curwanip = get_current_wan_address();
/* set failover ip if defined */
+ if(isset($config['installedpackages']['sasyncd']['config']))
foreach($config['installedpackages']['sasyncd']['config'] as $sasyncd) {
if($sasyncd['ip'] <> "")
$curwanip = $sasyncd['ip'];
@@ -746,4 +748,4 @@ function vpn_endpoint_determine($tunnel, $curwanip) {
return null;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud