summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-18 21:17:40 +0000
committerErmal <eri@pfsense.org>2010-06-18 21:17:40 +0000
commitf31ab121f59ea1e45a0e1d61586a155dd1fd333a (patch)
treef4c6148ae32113830975225ccba13b235ed894d7 /etc
parent6f77aca537a291503a873e6c4aa0e4f2dd6128a2 (diff)
downloadpfsense-f31ab121f59ea1e45a0e1d61586a155dd1fd333a.zip
pfsense-f31ab121f59ea1e45a0e1d61586a155dd1fd333a.tar.gz
Make an extra check for monitor to be explicitly an ip otherwise apinger breaks.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index d348e52..59c42b6 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -160,6 +160,9 @@ EOD;
$gateway['monitor'] = $gateway['gateway'];
}
+ if (!is_ipaddr($gateway['monitor']))
+ continue;
+
$apingercfg .= "target \"{$gateway['monitor']}\" {\n";
$apingercfg .= " description \"{$gateway['name']}\"\n";
$gwifip = find_interface_ip($gateway['interface']);
OpenPOWER on IntegriCloud