![]() |
Lowercase a-f in IPv6 Addresses
1 Attachment(s)
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:
Change "upper" to "lower", so that line 4006 now reads: PHP Code:
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. |
That RFC is only a recommendation, and conflicts with the full RFC 4291.
https://tools.ietf.org/html/rfc4291 (IP Version 6 Addressing Architecture) Section 2.2 |
Quote:
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. ;) |
Quote:
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. :) All good? |
Posting here to say that you can do the same modification in vbulletin 4 forums.
This will be on line 6436 PHP Code:
PHP Code:
|
All times are GMT. The time now is 06:44 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|