diff options
-rw-r--r-- | src/tool_operate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 8f767152a..572c8d0cc 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1697,9 +1697,8 @@ static CURLcode operate_do(struct GlobalConfig *global, if(result == CURLE_SSL_CACERT) fprintf(global->errors, "%s%s%s", CURL_CA_CERT_ERRORMSG1, CURL_CA_CERT_ERRORMSG2, - ((config->proxy && - curl_strnequal(config->proxy, "https://", 8)) ? - "HTTPS proxy has similar options --proxy-cacert " + ((curlinfo->features & CURL_VERSION_HTTPS_PROXY) ? + "HTTPS-proxy has similar options --proxy-cacert " "and --proxy-insecure.\n" : "")); } |