Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Lowercase a-f in IPv6 Addresses Details »
Lowercase a-f in IPv6 Addresses
Mod Version: 1.00, by JamesC70 (Designer) JamesC70 is offline
Developer Last Online: Jan 2018 I like it Show Printable Version Email this Page

vB Version: 3.8.11 Rating: (0 vote - 0 average) Installs: 1
Released: 15 Jan 2018 Last Update: Never Downloads: 0
Not Supported Code Changes Re-usable Code Translations  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Change "upper" to "lower", so that line 4006 now reads:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks IPV6 Support in VB3 wootalyzer vBulletin 3.8 Add-ons 15 30 Jun 2014 11:52

Comments
  #2  
Old 15 Jan 2018, 14:45
Stingray27 Stingray27 is offline
 
Join Date: Jan 2006
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
Reply With Quote
  #3  
Old 15 Jan 2018, 16:03
JamesC70 JamesC70 is offline
 
Join Date: Jun 2007
Originally Posted by Stingray27 View Post
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.
Reply With Quote
  #4  
Old 15 Jan 2018, 18:35
Stingray27 Stingray27 is offline
 
Join Date: Jan 2006
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.
Reply With Quote
  #5  
Old 15 Jan 2018, 20:50
JamesC70 JamesC70 is offline
 
Join Date: Jun 2007
Originally Posted by Stingray27 View Post
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.

All good?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 21:46.

Layout Options | Width: Wide Color: