Fix bug unpacking IPv6 addresses.

Cases that didn't work:
  localhost (::1)
  divisible by 10 (70::1)
Merge pull request #24 from chruss2/master

Fix bug unpacking IPv6 addresses.