aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-05-05 17:08:22 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-13 08:17:10 +0200
commit6d32b72822efd160963eb5988a705f6c2013d0a9 (patch)
treebd3a9d598991ac7702f513c14f1416929203e84b /lib/url.c
parentb084616210b778868fc0fbdc02fafb7ef85f835d (diff)
proxy: acknowledge DISABLE_PROXY more
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 8dfdd9860..1daa1b4fd 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -866,6 +866,7 @@ static int IsMultiplexingPossible(const struct Curl_easy *handle,
return avail;
}
+#ifndef CURL_DISABLE_PROXY
static bool
proxy_info_matches(const struct proxy_info* data,
const struct proxy_info* needle)
@@ -877,6 +878,10 @@ proxy_info_matches(const struct proxy_info* data,
return FALSE;
}
+#else
+/* disabled, won't get called */
+#define proxy_info_matches(x,y) FALSE
+#endif
/*
* This function checks if the given connection is dead and extracts it from