Opened 2 years ago

Last modified 8 months ago

#28627 new defect

[torsocks] AAAA replies from tor not handled

Reported by: u Owned by:
Priority: Medium Milestone:
Component: Core Tor/Torsocks Version:
Severity: Normal Keywords:
Cc: dgoulet Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


As reported on

Tor now returns IPv6 addresses when hostnames are resolved, but torsocks cannot handle this case.

To reproduce:

torsocks -d nc 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:

Child Tickets

Change History (2)

comment:1 Changed 17 months ago by gaba

Owner: dgoulet deleted
Status: newassigned

Releasing some old tickets.

comment:2 Changed 8 months ago by teor

Status: assignednew

Change tickets that are assigned to nobody to "new".

Note: See TracTickets for help on using tickets.