summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-18 17:33:57 +0000
committerErmal <eri@pfsense.org>2010-05-18 17:36:44 +0000
commit01207fd8487803b40559c62cac65ffbebf5bfcab (patch)
treee92c1c5abd50c70f5e55a18504a46dab7f046077 /etc/inc
parentfe22a89b4e8014b1160edb3c9d176312ea3df6b2 (diff)
downloadpfsense-01207fd8487803b40559c62cac65ffbebf5bfcab.zip
pfsense-01207fd8487803b40559c62cac65ffbebf5bfcab.tar.gz
Fixes #536. More fixes and optimizations on the various functions and status pages used for gateways [groups].
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/gwlb.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 9d40e1b..b850a00 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -151,15 +151,14 @@ EOD;
if((is_numeric($gateway['attribute'])) && is_ipaddr($gwref['monitor'])) {
$gateway['monitor'] = $gwref['monitor'];
} else {
- if(($gateway['gateway'] == "dynamic") && ($gateway['monitor'])) {
+ if ($gateway['gateway'] == "dynamic") {
$gateway['monitor'] = "127.0.0.{$i}";
$i++;
}
- if(!is_ipaddr($gateway['monitor'])) {
+ if (!is_ipaddr($gateway['monitor']))
$gateway['monitor'] = $gateway['gateway'];
- }
}
-
+
$apingercfg .= "target \"{$gateway['monitor']}\" {\n";
$apingercfg .= " description \"{$gateway['name']}\"\n";
$alarms = "";
OpenPOWER on IntegriCloud