aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-09 03:18:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-09 03:18:51 +0000
commit09694af54bb7515f20be8eb51b21d152c05b5935 (patch)
tree1984cd8077918af366db335199b8f5fcb2a72073
parent812f67cee58f214d1fb4e3ec4527f0cbd59397df (diff)
downloadpfsense-packages-09694af54bb7515f20be8eb51b21d152c05b5935.tar.gz
pfsense-packages-09694af54bb7515f20be8eb51b21d152c05b5935.tar.bz2
pfsense-packages-09694af54bb7515f20be8eb51b21d152c05b5935.zip
Do not lazy search
-rw-r--r--packages/tinydns/tinydns_status.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/tinydns/tinydns_status.php b/packages/tinydns/tinydns_status.php
index bc3da8a2..9c862afe 100644
--- a/packages/tinydns/tinydns_status.php
+++ b/packages/tinydns/tinydns_status.php
@@ -81,7 +81,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) {
$ipaddress = $ping['ipaddress'];
$hostname = $ping['hostname'];
$status = file_get_contents("/var/db/pingstatus/$ipaddress");
- if(stristr($tinydns_data, $ipaddress))
+ if(stristr($tinydns_data, "+{$hostname}:{$ipaddress}"))
$inservice = "<FONT COLOR='GREEN'>YES</FONT>";
else
$inservice = "<FONT COLOR='BLUE'>NO</FONT>";
@@ -117,7 +117,7 @@ foreach($config['installedpackages']['tinydnsdomains']['config'] as $ping) {
echo $ipaddress;
if($row['loadbalance'])
echo " (LB)";
- if(stristr($tinydns_data ,$row['failoverip']))
+ if(stristr($tinydns_data, "+{$hostname}:{$row['failoverip']}"))
$inservice = "<FONT COLOR='GREEN'>YES</FONT>";
else
$inservice = "<FONT COLOR='BLUE'>NO</FONT>";