diff options
author | Phil Davis <phil.davis@inf.org> | 2017-01-05 13:42:22 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-01-05 13:42:22 +0545 |
commit | 0c5d4e8d3e4dc81a9c7eb883a40296493e9faa2b (patch) | |
tree | c09751db5184a90994d8e479eb79e78e669dc711 /src/etc/inc/gwlb.inc | |
parent | cd45956e512dd5efc122974bb87ca2bcd05010ca (diff) | |
download | pfsense-0c5d4e8d3e4dc81a9c7eb883a40296493e9faa2b.zip pfsense-0c5d4e8d3e4dc81a9c7eb883a40296493e9faa2b.tar.gz |
Correctly report unmonitored gateway status
If an alternate monitor IP has been entered and saved, then the user
checks "Disable Gateway Monitoring" and saves, the alternate monitor IP
is retained in the config - that is handy for when unchecking "Disable
Gateway Monitoring" later on.
But the Gateways widget and Status Gateways do not correctly understand
this combination. The gateway status shows as "Online" when it is
intended to show "Online (unmonitored)".
This PR corrects this.
Diffstat (limited to 'src/etc/inc/gwlb.inc')
-rw-r--r-- | src/etc/inc/gwlb.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index b240c12..fdb0151 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -466,6 +466,8 @@ function return_gateways_status($byname = false) { $status[$target]['loss'] = ""; $status[$target]['status'] = "none"; } + + $status[$target]['monitor_disable'] = true; } return($status); } |