static void fix_hostname(struct connectdata *conn, struct hostname *host)
{
/* set the name we use to display the host name */
- conn->host.dispname = conn->host.name;
+ host->dispname = host->name;
#ifdef USE_LIBIDN
/*************************************************************
else {
/* This is a proxy that hasn't been resolved yet. */
- /* IDN check */
+ /* IDN-fix the proxy name */
fix_hostname(conn, &conn->proxy);
/* resolve proxy */