diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-27 11:51:34 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-30 23:18:16 +0200 |
commit | f3d501dc678d80a93325bd93ab05c48855e1c0d1 (patch) | |
tree | f1f63712798510398d6e7aebc30f24afb27ed15c /lib/asyn-thread.c | |
parent | c4e6968127e876b01e5e0b4b7cdbc49d5267530c (diff) | |
download | curl-f3d501dc678d80a93325bd93ab05c48855e1c0d1.tar.gz |
build: disable more code/data when built without proxy support
Added build to travis to verify
Closes #5466
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; } |