Torsocks fails to resolve domain names where ɪᴘv6 is available.

Bug #1975416 reported by empty
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-websockets (Ubuntu)
Confirmed
Undecided
Unassigned
torsocks (Ubuntu)
Confirmed
Undecided
Unassigned
websocket-client (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

simple step to reproduce :

$ torify wget https://rpc.ethermine.org
--2022-05-22 13:08:03-- https://rpc.ethermine.org/
Resolving rpc.ethermine.org (rpc.ethermine.org)... 1653217683 ERROR torsocks[669]: [socks5] Resolve destination buffer too small (in socks5_recv_resolve_reply() at socks5.c:701)
failed: Non-recoverable failure in name resolution.
wget: unable to resolve host address 'rpc.ethermine.org'

Where the buffer is too small because the first returned address is longer than with ɪᴘv4. Disabling ɪᴘv6 doesn’t work because the issue happens at name resolution (where the returned ɪᴘv6 addresses are normally ignored).
Of course, wget supports socks proxies, but many python packages like WebSockets or aiohttp or web3py don’t and thus have to rely on torsocks for using tor. So there’s no workarounds.

The problem is today ɪᴘv6 is far more available than it used to be… Not only do some websites like Google or Wikipedia provide ɪᴘv6 but many providers like Cloudflare provide ɪᴘv6 to all their protected websites.
As a result, this prevents using torsocks with most of the web and might even make torsocks completely unusable in the future.

I’m reporting it here as that specific part of the project seems to abandonware upstream.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-websockets (Ubuntu):
status: New → Confirmed
Changed in torsocks (Ubuntu):
status: New → Confirmed
Changed in websocket-client (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.