add config app config flag USE_CUSTOM_HOSTS and place the canary-hosts.json check behind it.