diff options
author | Ermal <eri@pfsense.org> | 2010-07-29 17:10:08 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-07-29 17:10:28 +0000 |
commit | 439b0e26bc443b208f5112d348a4621bab25e14e (patch) | |
tree | e647f94d48bf7c6f1f1136ca8e2a47f73f7712ac /etc/inc/gwlb.inc | |
parent | 9c43432adcddfe8a6565ab5b277c40704afab594 (diff) | |
download | pfsense-439b0e26bc443b208f5112d348a4621bab25e14e.zip pfsense-439b0e26bc443b208f5112d348a4621bab25e14e.tar.gz |
Do not write anything to config before finishing all tests of correctnes. This avoids a problem of wrong config to apinger Discovered-by: Seth
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index eda0b06..89eeab9 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -160,11 +160,12 @@ EOD; if (!is_ipaddr($gateway['monitor'])) continue; - $apingercfg .= "target \"{$gateway['monitor']}\" {\n"; - $apingercfg .= " description \"{$gateway['name']}\"\n"; $gwifip = find_interface_ip($gateway['interface']); if (!is_ipaddr($gwifip)) continue; //Skip this target + + $apingercfg .= "target \"{$gateway['monitor']}\" {\n"; + $apingercfg .= " description \"{$gateway['name']}\"\n"; $apingercfg .= " srcip \"{$gwifip}\"\n"; $alarms = ""; $override = false; |