Thread:Project:Support desk/IPv6 issue

I'm using the latest MediaWiki (tried both 1.20.2 and 1.21alpha from git). I have clients that have IPv6 enabled and cannot turn IPv6 off (e.g. on iPads and Android tablets).

When an IPv6 client connects I get an error: Unable to determine IP with backtrace to WebRequest->getIP in User.php. I was able to trace it down to the IP::canonicalize function returning null. When I print the content of the $addr value passed to the function I get a IPv6 address like this: [2001:6a8:2900:5001:...]. I immediately suspected the surrounding square brackets are the culprit, because I did not see them in the regex expressions at the start of IP.php. When I add them to the RE_IPV6_ADD, MediaWiki stops complaining, so it must be related to the square brackets somehow.

Best regards,

Kris Dekeyser