mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Changelog for torify changes
Also reinstate the part of the torify script that checks for torsocks being installed, so that we can give a more useful message in case it isn't.
This commit is contained in:
parent
5cd707dcd3
commit
fc35674567
7
changes/bug5180
Normal file
7
changes/bug5180
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
o Removed features:
|
||||||
|
|
||||||
|
- The "torify" script no longer supports the "tsocks" sockifier
|
||||||
|
tool, since it doesn't support DNS and UDP right for Tor.
|
||||||
|
Everyone should be using torsocks instead. Fixes bug 3530 and bug
|
||||||
|
5180. Based on a patch by "ugh".
|
||||||
|
|
@ -37,6 +37,25 @@ case $1 in -v|--verbose)
|
|||||||
shift
|
shift
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exec torsocks "$@"
|
# taken from Debian's Developer's Reference, 6.4
|
||||||
echo "$0: Failed to exec torsocks $@" >&2
|
pathfind() {
|
||||||
exit 1
|
OLDIFS="$IFS"
|
||||||
|
IFS=:
|
||||||
|
for p in $PATH; do
|
||||||
|
if [ -x "$p/$*" ]; then
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$OLDIFS"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if pathfind torsocks; then
|
||||||
|
exec torsocks "$@"
|
||||||
|
echo "$0: Failed to exec torsocks $@" >&2
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "$0: torsocks not found in your PATH. Perhaps it isn't installed? (tsocks is no longer supported, for security reasons.)" >&2
|
||||||
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user