Lowercase a-f in IPv6 Addresses
I upgraded my forum from vB 3.8.9PL1 to 3.8.11, and noticed that 3.8.11 displays IPv6 addresses with uppercase letters on Who's Online.
3.8.9PL1 didn't do this, and none of the other websites I visit use uppercase letters in IPv6 addresses. I looked into it, and https://tools.ietf.org/html/rfc5952#section-4.2.3 says that IPv6 addresses are to use lowercase letters a-f. So, if this irritates you as much as it did me, here's the fix. 1. Open includes/class_core.php and search for function compress_ip. It should appear at line 3982. 2. 24 lines below, at line 4006, you should see: PHP Code:
return strtoupper(inet_ntop($ipx));
Change "upper" to "lower", so that line 4006 now reads: PHP Code:
return strtolower(inet_ntop($ipx));
Note, this will not fix any IPv6 hostname lookup issues you may experience. That is a webhost issue; if your webhost doesn't yet support IPv6 then their hands are also tied. I can post a workaround if anyone needs one, but it doesn't fully integrate into Who's Online. Download No files for download. |
Similar Mods
Miscellaneous Hacks IPV6 Support in VB3 | vBulletin 3.8 Add-ons |