mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 07:07:51 +02: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
@ -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…
x
Reference in New Issue
Block a user