Fix bug unpacking IPv6 addresses.

Cases that didn't work:
  localhost (::1)
  divisible by 10 (70::1)