[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/master] Make torsocks always connect to the configured Tor port
commit f7f4154dd687da2285c7f0eaa1bca034c410224c
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date: Fri Apr 20 10:52:20 2018 -0400
Make torsocks always connect to the configured Tor port
Whatever we use IPv4 or IPv6, make torsocks use the configured SocksPort in
the configuration.
Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
src/common/socks5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/socks5.c b/src/common/socks5.c
index bf6019a..9f7853b 100644
--- a/src/common/socks5.c
+++ b/src/common/socks5.c
@@ -165,7 +165,7 @@ int socks5_connect(struct connection *conn)
* the right socket family. Thus, trying to establish a connection to a
* remote IPv6, we have to connect to the Tor daemon in v6.
*/
- switch (conn->dest_addr.domain) {
+ switch (tsocks_config.socks5_addr.domain) {
case CONNECTION_DOMAIN_NAME:
/*
* For a domain name such as an onion address, use the default IPv4 to
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits