Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
IPv6 still logging as 0.0.0.2 even after DB utility update

Hey guys, I'm on 2.1.11 and I ran /utility/update
after upgrading, got a success message, but users with IPv6 addresses are still being logged as 0.0.0.2
, preventing us from banning spammers/abusers, etc.
I can see that LastIPAddress
is a varchar(39)
in the GDN_User
table. What else could be missing?
Tagged:
0
Comments
In library/core/functions.general.php there's a function called "forceIPv4". I have no idea what the authors were thinking, but replacing this with "return $IP" will at least log IPs correctly.