[tor-commits] [torsocks/master] Make torsocks always connect to the configured Tor port

dgoulet at torproject.org dgoulet at torproject.org
Fri Apr 20 14:55:17 UTC 2018


commit f7f4154dd687da2285c7f0eaa1bca034c410224c
Author: David Goulet <dgoulet at torproject.org>
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 at torproject.org>
---
 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





More information about the tor-commits mailing list