You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In lib/url.c the calls to Curl_idnconvert_hostname were moved to parseurlandfillconn() which is called before create_conn_helper_init_proxy in create_conn.
While we are not using libidn2, Curl_idnconvert_hostname is where the dispname member of struct hostname is populated.
Since the calls are gated by conn->bits.httpproxy/conn->bits.socksproxy, the names are not converted since the bits are only set in create_conn_helper_init_proxy.
I'm not sure how to resolve this and still maintain the changes for HSTS needed for that commit, otherwise I'd propose a patch.
I expected to see Connected to 192.168.2.1 (192.168.2.1) port 8080 (#0) as is observed in curl 7.84.0.
but instead received: Connected to (nil) (192.168.2.1) port 8080 (#0)
Regression: in commit 53bcf55 we moved the IDN conversion calls to
happen before the HSTS checks. But the HSTS checks are only done on the
server host name, not the proxy names. By moving the proxy name IDN
conversions, we accidentally broke the verbose output showing the proxy
name.
This change moves back the IDN conversions for the proxy names to the
place in the code path they were before 53bcf55.
Reported-by: Andy Stamp
Fixes#9937
Hello,
We recently upgraded to curl 7.86.0 from 7.84.0 and noticed that the proxy information is not being reported correctly in the log messages.
where 7.84.0 shows the proxy info correctly.
Notice
Connected to (nil) (192.168.2.1) port 8080 (#0)
in 7.86 vs.Connected to 192.168.2.1 (192.168.2.1) port 8080 (#0)
in 7.84.Both versions of curl were configured with:
It appears to be related to this commit: 53bcf55
In
lib/url.c
the calls toCurl_idnconvert_hostname
were moved toparseurlandfillconn()
which is called beforecreate_conn_helper_init_proxy
increate_conn
.While we are not using libidn2,
Curl_idnconvert_hostname
is where thedispname
member ofstruct hostname
is populated.Since the calls are gated by
conn->bits.httpproxy
/conn->bits.socksproxy
, the names are not converted since the bits are only set increate_conn_helper_init_proxy
.I'm not sure how to resolve this and still maintain the changes for HSTS needed for that commit, otherwise I'd propose a patch.
Thanks,
--Andy
I did this
With a proxy running at the specified info:
I expected the following
I expected to see
Connected to 192.168.2.1 (192.168.2.1) port 8080 (#0)
as is observed in curl 7.84.0.but instead received:
Connected to (nil) (192.168.2.1) port 8080 (#0)
curl/libcurl version
operating system
Linux, but also observed in QNX.
The text was updated successfully, but these errors were encountered: