Fixed commit 780cbff to handle IPv6 addresses.