Back to vBulletin 3.8 Template Modifications

Lowercase a-f in IPv6 Addresses
Mod Version: 1.00, by JamesC70

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 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)); 
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

No files for download.

Similar Mods

Miscellaneous Hacks IPV6 Support in VB3 vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024