url: proxy: Use 443 as default port for https proxies

This commit is contained in:
Thomas Glanzmann 2016-11-24 19:40:30 +01:00 committed by Daniel Stenberg
parent 8ebc5cda8f
commit 1232dbb8bd
3 changed files with 11 additions and 2 deletions

View file

@ -29,7 +29,8 @@ CURLOPT_PROXYPORT \- port number the proxy listens on
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXYPORT, long port);
.SH DESCRIPTION
Pass a long with this option to set the proxy port to connect to unless it is
specified in the proxy string \fICURLOPT_PROXY(3)\fP or uses the default one.
specified in the proxy string \fICURLOPT_PROXY(3)\fP or uses 443 for https
proxies and 1080 for all others as default.
While this accepts a 'long', the port number is 16 bit so it can't be larger
than 65535.