I want to torify some application (curl in the example) with custom host and port for SOCKS connection. It works fine with default host and port, but not when specifying --address and --port options.user@ubuntu:~$ URL=https://httpbin.org/ipuser@ubuntu:~$ torsocks --address 127.0.0.1 --port 9050 curl $URLIllegal option --/usr/bin/torsocks: 98: local: /usr/bin/which: bad variable nameAlternative syntax:user@ubuntu:~$ torsocks -a 127.0.0.1 -P 9050 curl $URLERROR: -a cannot be found.In source code of torsocks script i see (it was two years ago):echo   -d, --debug        Set debug mode.echo   -u, --user NAME    Username for the SOCKS5 authenticationecho   -p, --pass NAME    Password for the SOCKS5 authenticationecho   -i, --isolate      Automatic tor isolation. Can't be used with -u/-pecho   -a, --address HOST Specify Tor addressecho   -P, --port PORT    Specify Tor portecho   on, off            Set/Unset your shell to use Torsocks by defaultecho                      Make sure to source the call when using this option. (See Examples)echo   show, sh           Show the current value of the LD_PRELOADBut not in the current versions of torsocks.And on line 98 of /usr/bin/torsocks i see:torify_app (){        local app_path=`which $1`        # NEVER remove that line or else nothing it torified.        set_ld_preloadI don't understand. Is there another way to torify app with custom SOCKS proxy host and address?
Specify host and port for torsocks proxying
bash;proxy;tor;proxychains;socks5 proxy