diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-11 11:06:26 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-11 11:06:26 -0200 |
commit | c33fd4cc0034a43292a43133a7449d2d4bc54f6b (patch) | |
tree | 460090345c111dd9a90ca9918d0019053494898f /etc | |
parent | 03fff067bcec45861ec78cc3eec0c66a2fdd83c5 (diff) | |
download | pfsense-c33fd4cc0034a43292a43133a7449d2d4bc54f6b.zip pfsense-c33fd4cc0034a43292a43133a7449d2d4bc54f6b.tar.gz |
Fix typo, gateway entry in config has a field called monitor, not monitorip
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/gwlb.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index bb304ce..cfd61ca 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -405,14 +405,14 @@ function return_gateways_status($byname = false) { foreach($gateways_arr as $gwitem) { if(!isset($gwitem['monitor_disable'])) continue; - if(!is_ipaddr($gwitem['monitorip'])) { + if(!is_ipaddr($gwitem['monitor'])) { $realif = $gwitem['interface']; $tgtip = get_interface_gateway($realif); if (!is_ipaddr($tgtip)) $tgtip = "none"; $srcip = find_interface_ip($realif); } else { - $tgtip = $gwitem['monitorip']; + $tgtip = $gwitem['monitor']; $srcip = find_interface_ip($realif); } if($byname == true) @@ -429,7 +429,7 @@ function return_gateways_status($byname = false) { $status[$target]['loss'] = "100.0%"; $status[$target]['status'] = "down"; } else { - $status[$target]['monitorip'] = $tgtip; + $status[$target]['monitor'] = $tgtip; $status[$target]['srcip'] = $srcip; $status[$target]['name'] = $gwitem['name']; $status[$target]['lastcheck'] = date('r'); @@ -1143,4 +1143,4 @@ function gateway_is_gwgroup_member($name) { return $members; } -?>
\ No newline at end of file +?> |