Skip to content

Commit

Permalink
set environment variables TOR_SOCKS_SOCKET and TOR_CONTROL_SOCKET
Browse files Browse the repository at this point in the history
so Tor Browser connectivity does not break when TPO switches to SocksSocket

https://phabricator.whonix.org/T192
  • Loading branch information
Patrick Schleizer committed Sep 13, 2016
1 parent cd50caf commit ad86ce9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions usr/lib/anon-ws-disable-stacked-tor/torbrowser.sh
Expand Up @@ -34,14 +34,11 @@ export TOR_SKIP_LAUNCH=1
## Since Whonix 12, socat is creating a unix domain socket file
## /var/run/anon-ws-disable-stacked-tor/127.0.0.1_9150.sock which forwards to
## 127.0.0.1:9150, where socat is listening, which forwards it to the gateway
## port 9150. This environment variable was not implemented in Tor Browser at
## time of writing, see:
## https://trac.torproject.org/projects/tor/ticket/14272#comment:3
## Optimistically already adding it. As long it is ignored, there is no harm.
## And once Tor Browser supports it, chances are better that it is still able
## to make connections.
export TOR_PRE_EXIST_UNIX_SOCKET_SOCKS="/var/run/anon-ws-disable-stacked-tor/127.0.0.1_9150.sock"
export TOR_PRE_EXIST_UNIX_SOCKET_CONTROL="/var/run/anon-ws-disable-stacked-tor/127.0.0.1_9151.sock"
## port 9150.
## https://phabricator.whonix.org/T192
## https://trac.torproject.org/projects/tor/ticket/20111#comment:5
export TOR_SOCKS_SOCKET="/var/run/anon-ws-disable-stacked-tor/127.0.0.1_9150.sock"
export TOR_CONTROL_SOCKET="/var/run/anon-ws-disable-stacked-tor/127.0.0.1_9151.sock"

## environment variable to skip TorButton control port verification
## https://trac.torproject.org/projects/tor/ticket/13079
Expand Down

0 comments on commit ad86ce9

Please sign in to comment.