diff options
author | Ermal <eri@pfsense.org> | 2010-06-18 21:17:40 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-18 21:17:40 +0000 |
commit | f31ab121f59ea1e45a0e1d61586a155dd1fd333a (patch) | |
tree | f4c6148ae32113830975225ccba13b235ed894d7 /etc | |
parent | 6f77aca537a291503a873e6c4aa0e4f2dd6128a2 (diff) | |
download | pfsense-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.inc | 3 |
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']); |