1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-11 20:27:04 +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; 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