mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
socks: use dns filter for resolving
Use a dns connection filter to resolve hostnames where their addresses are locally resolved and forwarded to the SOCKS proxy. This makes all improvements, like in #21295 for example, also apply to socks connections. Curl_resolv() is now only called from a DNS filter. (ftp still calls Curl_resolv_blocking() in two places, one of which may be replaceable with a DNS filter as well to remove the block, tbd) Closes #21297
This commit is contained in:
parent
0567e72168
commit
bcd94e2750
3 changed files with 74 additions and 92 deletions
|
|
@ -42,7 +42,8 @@ CURLcode Curl_cf_dns_insert_after(struct Curl_cfilter *cf_at,
|
|||
uint8_t dns_queries,
|
||||
const char *hostname,
|
||||
uint16_t port,
|
||||
uint8_t transport);
|
||||
uint8_t transport,
|
||||
bool complete_resolve);
|
||||
|
||||
CURLcode Curl_conn_dns_result(struct connectdata *conn, int sockindex);
|
||||
CURLcode Curl_cf_dns_result(struct Curl_cfilter *cf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue