Fix varname: domain->endpoint
Add comment