summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_dns.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-07-30 21:03:14 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-07-30 21:03:14 -0400
commit3e85ac2b437d5e7c9403a36f3d1f259656558fe9 (patch)
treef8b1a1f9ac107e2ea461db8320b9de5d63774513 /usr/local/www/diag_dns.php
parenta812abb3b7dac9c0e065f1cbd5a2eda86f73dcbc (diff)
downloadpfsense-3e85ac2b437d5e7c9403a36f3d1f259656558fe9.zip
pfsense-3e85ac2b437d5e7c9403a36f3d1f259656558fe9.tar.gz
Set ipaddr to first array entry
Diffstat (limited to 'usr/local/www/diag_dns.php')
-rw-r--r--usr/local/www/diag_dns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php
index 94cd630..485ffe9 100644
--- a/usr/local/www/diag_dns.php
+++ b/usr/local/www/diag_dns.php
@@ -86,7 +86,7 @@ if ($_POST) {
$resolved = split("\n", $dig);
$hostname = $host;
if ($host != $resolved)
- $ipaddr = $resolved;
+ $ipaddr = $resolved[0];
}
if ($host == $resolved) {
OpenPOWER on IntegriCloud