summaryrefslogtreecommitdiff
path: root/lib/http_proxy.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-03-05 17:38:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2014-03-05 17:38:05 +0000
commit219a0fbe76204e2505a9143aeb149336c7f5683b (patch)
treeee5ece394dd59ab8ec7fc11e04468dca8f1e0c06 /lib/http_proxy.h
parent0b3750b5c23c25f1bcf4ed95edf8928ce4fd06cc (diff)
downloadcurl-219a0fbe76204e2505a9143aeb149336c7f5683b.tar.gz
remote_port: allow connect to port 0
Port number zero is perfectly allowed to connect to. I moved to storing the remote port number in an int so that -1 means undefined and 0-65535 can be used for legitimate port numbers.
Diffstat (limited to 'lib/http_proxy.h')
-rw-r--r--lib/http_proxy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_proxy.h b/lib/http_proxy.h
index 518c09383..2b5e9c9b4 100644
--- a/lib/http_proxy.h
+++ b/lib/http_proxy.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -26,7 +26,7 @@
/* ftp can use this as well */
CURLcode Curl_proxyCONNECT(struct connectdata *conn,
int tunnelsocket,
- const char *hostname, unsigned short remote_port);
+ const char *hostname, int remote_port);
/* Default proxy timeout in milliseconds */
#define PROXY_TIMEOUT (3600*1000)