Bug 32591 - Не работает torsocks on
: Не работает torsocks on
Status: CLOSED NOTABUG
: Sisyphus
(All bugs in Sisyphus/torsocks)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2016-10-08 06:44 by
Modified: 2016-10-08 09:54 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2016-10-08 06:44:17
Не работает функционал включения torsocks в текущем шелле (в данном случае
zsh):

=8<======================================================================
evg@thinkpad ~ $torsocks show
LD_PRELOAD=""
evg@thinkpad ~ $torsocks on  
Tor mode activated. Every command will be torified for this shell.
evg@thinkpad ~ $torsocks show
LD_PRELOAD=""
evg@thinkpad ~ $env|grep LD_PRE
[1]    15653 done       env | 
       15654 exit 1     grep LD_PRE
=8<======================================================================

при этом вызов отдельных команд через torsocks и torsocks --shell - работают.
------- Comment #1 From 2016-10-08 08:36:04 -------
torsocks on и не должен так работать. Нужно делать source для скрипта torsocks.

Из мана

on | off - This  option  adds  or  removes torsocks(8) from the LD_PRELOAD
environment variable for the current shell. If you want to use this option, you
HAVE to source torsocks from your shell.

Add the torsocks library to LD_PRELOAD
    $ . torsocks on
Remove the torsocks library from LD_PRELOAD
    $ . torsocks off
------- Comment #2 From 2016-10-08 09:54:23 -------
Спасибо. Читал ман, но видимо неправильно понял.