[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/master] Fix: handle conn. type domain name for socks5 connect
commit 713c70741ceadd201c6b8e558ab2ac71c1c1286e
Author: David Goulet <dgoulet@xxxxxxxxx>
Date: Tue Feb 25 21:44:33 2014 -0500
Fix: handle conn. type domain name for socks5 connect
Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
src/common/socks5.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/common/socks5.c b/src/common/socks5.c
index 9525d04..bea583b 100644
--- a/src/common/socks5.c
+++ b/src/common/socks5.c
@@ -135,6 +135,11 @@ int socks5_connect(struct connection *conn)
* remote IPv6, we have to connect to the Tor daemon in v6.
*/
switch (conn->dest_addr.domain) {
+ case CONNECTION_DOMAIN_NAME:
+ /*
+ * For a domain name such as an onion address, use the default IPv4 to
+ * connect to the Tor SOCKS port.
+ */
case CONNECTION_DOMAIN_INET:
socks5_addr = (struct sockaddr *) &tsocks_config.socks5_addr.u.sin;
len = sizeof(tsocks_config.socks5_addr.u.sin);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits