Bug 32591 - Не работает torsocks on
Summary: Не работает torsocks on
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: torsocks (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Nobody's working on this, feel free to take it
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-08 06:44 MSK by Evgenii Terechkov
Modified: 2016-10-08 09:54 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgenii Terechkov 2016-10-08 06:44:17 MSK
Не работает функционал включения 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 Владимир Диденко 2016-10-08 08:36:04 MSK
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 Evgenii Terechkov 2016-10-08 09:54:23 MSK
Спасибо. Читал ман, но видимо неправильно понял.