Handle IPv6 addresses that use ::

Change-Id: Ie070eff3783e7ad1f2db9824f2194c5667accde8