Closed willem010 closed 9 years ago
All IP addresses should be stored in the log as IP6 addresses - its only during display that they are converted to IP4 if appropriate. (Its possible to tweak a file to display all IP addresses in IP6 format).
Probably the search address needs checking, and converting to IP6 format before the search.
i've checked the database and find both v4 and v6 in there v6 for the new records, but the old ones are still v4. probably a result of the upgrade going wrong?
after my (now succesfull) upgrade, my tables still contain both v4 and v6 ip's (both user table and banlist table, probably more .. )
in the banlist this gives a few issues .. filtering on ip's does only work for v4 ips the records with v6 will not show in the results:
banlist:
v4 search ..
but v6 ips .. no result. (and there should be ;) )
here's a small bit of the banlist tabe itself.
Understood. Looks like two fixes are required - firstly to convert the IP address format during an upgrade, and secondly to convert IPV4 filter values to IPV6 before searching
btw, i've added an unique index on ip for my own database, preventing double records and making the ban list able to sort on ip faster. this helps a lot on my site. ;)
@willem010 is this bug still an issue?
yeah, that site still has that issue. and it will probably wil stay that way..
problem appeared when converting old site to v2.0 the old records are still in v4, the new ones are in v6.
if there was any conversion going on during upgrade, it failed at that time.. problem never got solved,
but this issue relates to the site whixh is no longer miine, so.. for me .. there is no issue :P lol
btw, most of my older pending issues relate to this site i left the issues open, thinking the issues need to be solved anyway. (except for the feature requests .. if you want me to close em.. just say so.. )
all my other e107 sites are working, but noting fancy there, most e107 features are unused,,( and the visitor load cannot be compared.)
okay thanks. I'll close it for now, as it's most likely due to the timing of updates and database changes.
When looking at a problem yesterday i noticed 2 different types of IPs in the database.
the ban list contain both ip v4 and v6 ips. the users now have v6 IP's but show up in the logs as IPv4. (makes it hard to find the user)
an option to find a user on his IP would be nice here too. (this now doesnt work for v6 adresses?)