mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:03:39 +03:00
CURLINFO_USED_PROXY: return bool whether the proxy was used
Adds test536 to verify Closes #12719
This commit is contained in:
parent
d5b0fee39a
commit
cc04c73677
12 changed files with 259 additions and 4 deletions
|
|
@ -158,6 +158,13 @@ void Curl_persistconninfo(struct Curl_easy *data, struct connectdata *conn,
|
|||
data->info.conn_primary_port = conn->port;
|
||||
data->info.conn_remote_port = conn->remote_port;
|
||||
data->info.conn_local_port = local_port;
|
||||
data->info.used_proxy =
|
||||
#ifdef CURL_DISABLE_PROXY
|
||||
0
|
||||
#else
|
||||
conn->bits.proxy
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
static const struct Curl_addrinfo *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue