aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeandebogue <jeandebogue@msn.com>2012-02-21 08:49:07 +0100
committerjeandebogue <jeandebogue@msn.com>2012-02-21 08:49:07 +0100
commitad5cdb3d84fdc24b32e3d440f03c44e3310c977b (patch)
tree54fdcb040c09ba742557ecffe60cceb865d61177
parent219424fbe4fd9d45d8a89981578db3ea18ae57ac (diff)
downloadpfsense-packages-ad5cdb3d84fdc24b32e3d440f03c44e3310c977b.tar.gz
pfsense-packages-ad5cdb3d84fdc24b32e3d440f03c44e3310c977b.tar.bz2
pfsense-packages-ad5cdb3d84fdc24b32e3d440f03c44e3310c977b.zip
Change from monitorip to failoverip. We want to know if the failover ip is in service and not if the monitor ip is in service.
-rw-r--r--config/tinydns/tinydns_status.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/tinydns/tinydns_status.php b/config/tinydns/tinydns_status.php
index 147001af..3a4b8545 100644
--- a/config/tinydns/tinydns_status.php
+++ b/config/tinydns/tinydns_status.php
@@ -87,8 +87,8 @@ if(strstr($pfSversion, "1.2"))
<?php
$pingdir = return_dir_as_array("/var/db/pingstatus");
-if(file_exists("/service/tinydns/root/data"))
- $tinydns_data = file_get_contents("/service/tinydns/root/data");
+if(file_exists("/var/run/service/tinydns/root/data"))
+ $tinydns_data = file_get_contents("/var/run/service/tinydns/root/data");
else
$tinydns_data = "";
if($config['installedpackages']['tinydnsdomains'])
@@ -146,7 +146,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) {
echo $ipaddress;
if($row['loadbalance'])
echo " (LB)";
- if(stristr($tinydns_data, "+{$hostname}:{$row['monitorip']}"))
+ if(stristr($tinydns_data, "+{$hostname}:{$row['failoverip']}"))
$inservice = "<FONT COLOR='GREEN'>YES</FONT>";
else
$inservice = "<FONT COLOR='BLUE'>NO</FONT>";