mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge remote-tracking branch 'github-bantu/ticket/10257' into develop-olympus
* github-bantu/ticket/10257: [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
afa377d028
1 changed files with 10 additions and 1 deletions
|
@ -3735,10 +3735,19 @@ function phpbb_checkdnsrr($host, $type = 'MX')
|
|||
{
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
case 'A':
|
||||
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))
|
||||
{
|
||||
// Second line
|
||||
|
|
Loading…
Add table
Reference in a new issue