mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-11 12:16:38 +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:
committed by
Andreas Fischer
parent
99db533524
commit
ae8eee16cc
@ -3689,8 +3689,13 @@ function phpbb_checkdnsrr($host, $type = 'MX')
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
case 'A':
|
|
||||||
case 'AAAA':
|
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))
|
if (!empty($host_matches))
|
||||||
{
|
{
|
||||||
// Second line
|
// Second line
|
||||||
|
Reference in New Issue
Block a user