Update for domain in middleware of conn check.