Added IPv6 support for the wildcard check