diff options
Diffstat (limited to 'lib/asyn-thread.c')
-rw-r--r-- | lib/asyn-thread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c index 3ab253d8c..a60f4f066 100644 --- a/lib/asyn-thread.c +++ b/lib/asyn-thread.c @@ -494,11 +494,14 @@ static CURLcode resolver_error(struct connectdata *conn) const char *host_or_proxy; CURLcode result; +#ifndef CURL_DISABLE_PROXY if(conn->bits.httpproxy) { host_or_proxy = "proxy"; result = CURLE_COULDNT_RESOLVE_PROXY; } - else { + else +#endif + { host_or_proxy = "host"; result = CURLE_COULDNT_RESOLVE_HOST; } |