mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/10257] Fix AAAA record parsing for old versions of Windows
Older versions of Windows use a different output format for AAAA records. PHPBB3-10257
This commit is contained in:
parent
99db533524
commit
ae8eee16cc
1 changed files with 6 additions and 1 deletions
|
@ -3689,8 +3689,13 @@ function phpbb_checkdnsrr($host, $type = 'MX')
|
|||
break;
|
||||
|
||||
default:
|
||||
case 'A':
|
||||
case 'AAAA':
|
||||
if (stripos($line, "$host AAAA IPv6 address") === 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
//No break, newer versions of Windows output AAAA in the same way as the A records
|
||||
case 'A':
|
||||
if (!empty($host_matches))
|
||||
{
|
||||
// Second line
|
||||
|
|
Loading…
Add table
Reference in a new issue