[tor-bugs] #28627 [Core Tor/Torsocks]: [torsocks] AAAA replies from tor not handled
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Nov 27 14:11:17 UTC 2018
#28627: [torsocks] AAAA replies from tor not handled
--------------------+-----------------------------------
Reporter: u | Owner: dgoulet
Type: defect | Status: new
Priority: Medium | Component: Core Tor/Torsocks
Version: | Severity: Normal
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------+-----------------------------------
As reported on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895903:
''Tor now returns IPv6 addresses when hostnames are resolved, but torsocks
cannot handle this case.''
To reproduce:
{{{
torsocks -d nc v6.ipv6-test.com 80
}}}
''
This makes it tricky to use torsocks on domains that will resolve to an
AAAA only causing the program to abort with no error message.''
Indeed, in
{{{
int socks5_send_resolve_request(const char *hostname, struct connection
*conn)
}}}
I see:
{{{
/* By default we use IPv4 address. */
msg.atyp = SOCKS5_ATYP_DOMAIN;
}}}
(I've tested it from the command line with torsocks 2.3.0, and it does not
work, while using TBB it works fine.)
I'm not sure if this issue is also related to this bug:
https://trac.torproject.org/projects/tor/ticket/25295
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28627>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list