diff options
-rw-r--r-- | lib/url.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -5652,13 +5652,6 @@ static CURLcode create_conn(struct SessionHandle *data, conn->bits.tunnel_proxy = TRUE; /************************************************************* - * IDN-fix the hostnames - *************************************************************/ - fix_hostname(data, conn, &conn->host); - if(conn->proxy.name && *conn->proxy.name) - fix_hostname(data, conn, &conn->proxy); - - /************************************************************* * Figure out the remote port number and fix it in the URL *************************************************************/ result = parse_remote_port(data, conn); @@ -5675,6 +5668,13 @@ static CURLcode create_conn(struct SessionHandle *data, goto out; /************************************************************* + * IDN-fix the hostnames + *************************************************************/ + fix_hostname(data, conn, &conn->host); + if(conn->proxy.name && *conn->proxy.name) + fix_hostname(data, conn, &conn->proxy); + + /************************************************************* * Setup internals depending on protocol. Needs to be done after * we figured out what/if proxy to use. *************************************************************/ |