benedmunds/CodeIgniter-Ion-Auth — pull request #210 by michaelbrooks (2012-04-29 00:08:43+00:00)
Title: Support for IPv6 ip addresses

The model uses the inet_pton() function to compact ip addresses before inserting them in the database, which means it supports IPv6 addresses.

That said, I couldn't figure out how to store these values in PostgreSQL without code changes. They have a bytea format, but as far as I can tell it expects binary data in a special format. Couldn't test that though, only have MySQL. I think the SQL Server version is right though.

As an alternative, it could also work to just use varchars for ip addresses... a bit slower and bulkier but also friendlier and more portable.