#21638IP-lock not aware of IPv6
Description
When locking a session to an IP with less than 4 parts, the core attempts to do IPv4 things to a potentially IPv6 address.
The attached patch adds a simple check for IPv6 addresses and keeps TYPO3 from wrongly assuming IPv4. It just returns the full IP, assuming this choice will lock the session to the individual address (reproducing the default strictest behaviour for IPv4).
The patch is against class.t3lib_userauth.php, being the first actual patch I ever contributed to another project.. please go easy on me if I did it wrong. ;-)
(issue imported from #M15379)