if((conn->given->flags&PROTOPT_SSL) && conn->bits.httpproxy)
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
*************************************************************/
if(result)
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.