Version: 1.00, by JamesC70
Developer Last Online: May 2020
Category: Miscellaneous Hacks -
Version: 3.8.11
Rating:
Released: 01-14-2018
Last Update: Never
Installs: 1
Re-useable Code Code Changes Translations
No support by the author.
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 RFC5952 Section 4.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));
3. FTP the edited file to your server, and inspect any IPv6 address you may see on Who's Online to verify that it now displays a-f as lowercase letters.
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
That RFC is only a recommendation, and conflicts with the full RFC 4291.
The second line of 4291, just below where you can choose text or PDF, says "Updated by: 5952".
If we read the Abstract of 5952, it is written to correct the problems of 4291.
The IETF clearly intends 5952 to supersede 4291. Whether you follow 5952 is your choice (5952 requires all systems to accept a valid IPv6 address if it conforms with 4291) but vBulletin should have been 5952 compliant from the start of its IPv6 support.
It may intend to replace it [at some point] but it doesnt atm.
Why whould vb comply with something thats just a proposed recommendation ?
As far as I can tell from 5952, the whole "use lowercase" is just a 50/50 random choice based on the fact unix systems are case sensitive. Uppercase would be equally valid.
As long as your software (e.g. vBulletin) is consistant in its use of one or the other, it doesnt really matter which way you go.
Its all just preference really, I find lowercase looks really horrible & odd.
As long as your software (e.g. vBulletin) is consistant in its use of one or the other, it doesnt really matter which way you go.
Its all just preference really, I find lowercase looks really horrible & odd.
I have two vB 3.8 forums, and it bothered me that one shows lowercase IPv6 but the other shows uppercase on Who's Online. This inconsistency is what bothered me; if I only had one forum then I may never have noticed the change.
But if IB ever releases a hypothetical 3.8.13 (intentionally skipping 3.8.12) that reverts IPv6 to lowercase, now you know how to change it back to uppercase.