#912719 fails open if it cannot parse -a

Package:
torsocks
Source:
torsocks
Description:
use SOCKS-friendly applications with Tor
Submitter:
Peter Palfrader
Date:
2026-07-06 17:45:38 UTC
Severity:
normal
Tags:
#912719#5
Date:
2018-11-03 08:51:11 UTC
From:
To:
torsocks fails open if it cannot parse the -a argument.

| weasel@orinoco:~/test$ torsocks -a "foo" curl -L -s https://deb.debian.org/debian/dists/stable/Release  | grep Origin
| 1541235000 ERROR torsocks[4883]: Config file unknown tor address: foo (in conf_file_set_tor_address() at config-file.c:281)
| Origin: Debian

Since torsocks could not parse -a, it just used the tor on 127.0.0.1:9050.  I
would expect it to fail closed instead.

#912719#10
Date:
2018-11-04 08:58:16 UTC
From:
To:
Control: found -1 2.2.0-2

Ouch :/ Reproduced on sid. I see a few potentially related changes in
upstream Git, might be worth trying to import them and see what happens.

Cheers,