Fix IPv6 matching bug