summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSuphanat Chunhapanya <haxx.pop@gmail.com>2019-08-22 11:53:59 +0800
committerSuphanat Chunhapanya <haxx.pop@gmail.com>2019-10-17 15:33:16 +0800
commit101bdeb02d78aab7d7b4b13e8620203ce6e44b4c (patch)
treea2751f191beebb7cf88eba1c3ae6472ba8d86feb /src
parent9dd04396ba66602e89df52fd8bc1cbad1201083b (diff)
downloadtor-101bdeb02d78aab7d7b4b13e8620203ce6e44b4c.tar.gz
tor-101bdeb02d78aab7d7b4b13e8620203ce6e44b4c.zip
doc: TCPProxy is not supported in TOR_PT_PROXY
Because we need to construct the URI using the TCPProxy configuration but we don't have a standard URI scheme for haproxy yet, we decided to not support TCPProxy in TOR_PT_PROXY now. There is no problem with HTTPSProxy, Socks4Proxy, or Socks5Proxy because they all have standard URI schemes.
Diffstat (limited to 'src')
-rw-r--r--src/feature/client/transports.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/client/transports.c b/src/feature/client/transports.c
index 97bfc8ae30..de383c9836 100644
--- a/src/feature/client/transports.c
+++ b/src/feature/client/transports.c
@@ -733,6 +733,9 @@ get_pt_proxy_uri(void)
const or_options_t *options = get_options();
char *uri = NULL;
+ /* XXX: Currently TCPProxy is not supported in TOR_PT_PROXY because
+ * there isn't a standard URI scheme for some proxy protocols, such as
+ * haproxy. */
if (options->Socks4Proxy || options->Socks5Proxy || options->HTTPSProxy) {
char addr[TOR_ADDR_BUF_LEN+1];