1
0
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:
Patrick Webster 2011-07-09 16:03:02 -05:00 committed by Andreas Fischer
parent 99db533524
commit ae8eee16cc

View File

@ -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