summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-01-05 13:42:22 +0545
committerRenato Botelho <renato@netgate.com>2017-01-05 10:47:21 -0200
commite551eed05f71c46c3601790ddb6f2d6d15f8bd52 (patch)
treebbb49c970f6b3eadb632705d21f011e8a47d6b2d /src/etc
parent46237e23f35db70a917939609061dce7b7f955f9 (diff)
downloadpfsense-e551eed05f71c46c3601790ddb6f2d6d15f8bd52.zip
pfsense-e551eed05f71c46c3601790ddb6f2d6d15f8bd52.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. (cherry picked from commit 0c5d4e8d3e4dc81a9c7eb883a40296493e9faa2b)
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/gwlb.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc
index 4967366..743fe58 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -500,6 +500,8 @@ function return_gateways_status($byname = false) {
$status[$target]['loss'] = "";
$status[$target]['status'] = "none";
}
+
+ $status[$target]['monitor_disable'] = true;
}
return($status);
}
OpenPOWER on IntegriCloud