pv4 addresses as well as ipv6 addresses with extra square brackets if [[ "${NODE_crc_ETCD_URL_HOST}" != "${NODE_IP}" && "${NODE_crc_ETCD_URL_HOST}" != "[${NODE_IP}]" ]]; then # echo the error message to stderr echo "Expected etcd url host to be ${NODE_IP} got ${NODE_crc_ETCD_URL_HOST}" >&2 exit 1 fi *