Closed michael-e closed 8 years ago
BTW, why is the RawIP
column defined with a length of 1024?
The issue will not occur if you increase the length of the IP columns (in all four tables) to VARCHAR 45
Wanna send a PR ? :)
BTW, why is the RawIP column defined with a length of 1024?
Because it will contain the whole value from the https headers. This can be customized (See https://github.com/Solutions-Nitriques/anti_brute_force/blob/master/lib/class.ABF.php#L657) so we need space to fit things way bigger then a single ip address when usign X-Forwarded-by headers (they can add up). remember this? ;)
remember this?
:-) Now I do.
Wanna send a PR ? :)
I will take a look and report back.
I am close. Still 3 questions left:
meta.xml
file?dev
Thanks!
Here you are!
When IPv6 addresses pass through to the ABF extension, you will see a database error on the second login attempt, onviously caused by the fact that the IP address gets cut off in the
IP
column (defined asVARCHAR 16
).The issue will not occur if you increase the length of the IP columns (in all four tables) to
VARCHAR 45
(whis is the maximum lenght of an IPv6 address, see http://stackoverflow.com/a/7477384).