fix($location): support IPv6 addresses

Fixes #2864