Fix config check for hosts instead of host/port