mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10257] Slightly adjust comments about AAAA records on Windows XP/2003. [ticket/10257] Fix AAAA record parsing for old versions of Windows [ticket/10257] Add missing break statement after CNAME block.
This commit is contained in:
commit
8da1d5e187
1 changed files with 10 additions and 1 deletions
|
@ -3673,10 +3673,19 @@ function phpbb_checkdnsrr($host, $type = 'MX')
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case 'A':
|
|
||||||
case 'AAAA':
|
case 'AAAA':
|
||||||
|
// AAAA records returned by nslookup on Windows XP/2003 have this format.
|
||||||
|
// Later Windows versions use the A record format below for AAAA records.
|
||||||
|
if (stripos($line, "$host AAAA IPv6 address") === 0)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
// No break
|
||||||
|
|
||||||
|
case 'A':
|
||||||
if (!empty($host_matches))
|
if (!empty($host_matches))
|
||||||
{
|
{
|
||||||
// Second line
|
// Second line
|
||||||
|
|
Loading…
Add table
Reference in a new issue