]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
doc: TCPProxy is not supported in TOR_PT_PROXY
authorSuphanat Chunhapanya <haxx.pop@gmail.com>
Thu, 22 Aug 2019 03:53:59 +0000 (11:53 +0800)
committerSuphanat Chunhapanya <haxx.pop@gmail.com>
Thu, 17 Oct 2019 07:33:16 +0000 (15:33 +0800)
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.

src/feature/client/transports.c

index 97bfc8ae30671821d7c6cb3d98e596ef036f1819..de383c98360e0d5c5a115ebfde6b9b648fa72424 100644 (file)
@@ -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];