diff options
author | Ermal <eri@pfsense.org> | 2010-09-26 19:59:23 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-26 19:59:23 +0000 |
commit | f44f8eb57c6f5e44ccb1f04481923d8220e9ae23 (patch) | |
tree | 4477ada1e3b8ef56f6b08823ab57706cfc452066 /etc | |
parent | 49f61a1cab7e22af86b3b8f9cd25e20e602b225c (diff) | |
download | pfsense-f44f8eb57c6f5e44ccb1f04481923d8220e9ae23.zip pfsense-f44f8eb57c6f5e44ccb1f04481923d8220e9ae23.tar.gz |
Properly handle reinitializing of variables on the next loop. Reported-by: http://forum.pfsense.org/index.php/topic,28636.0.html
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/gwlb.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 5217e9b..ab72831 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -149,10 +149,11 @@ EOD; if (!is_ipaddr($gwifip)) continue; //Skip this target - $apingercfg .= "target \"{$gateway['monitor']}\" {\n"; + $apingercfg = "target \"{$gateway['monitor']}\" {\n"; $apingercfg .= " description \"{$name}\"\n"; $apingercfg .= " srcip \"{$gwifip}\"\n"; $alarms = ""; + $alarmscfg = ""; $override = false; if (!empty($gateway['lowloss'])) { $alarmscfg .= "alarm loss \"{$name}loss\" {\n"; |