feature: use go-libtor on mobile, OONI_TOR_BINARY env on desktop (#614)
This branch adds support for running: 1. `go-libtor` on mobile. 2. the tor provided by the desktop app via the `OONI_TOR_BINARY` environment variable. See https://github.com/ooni/ooni.org/issues/761. Co-authored-by: Simone Basso <bassosimone@gmail.com>
This commit is contained in:
parent
09e300ed26
commit
41cf4a8671
8 changed files with 170 additions and 28 deletions
|
|
@ -19,6 +19,14 @@
|
|||
// that does not embed such a configuration, it won't
|
||||
// be possible to address this use case.
|
||||
//
|
||||
// For tor tunnels, we have two distinct configurations: on
|
||||
// mobile we use github.com/ooni/go-libtor; on desktop we use
|
||||
// a more complex strategy. If the OONI_TOR_BINARY environment
|
||||
// variable is set, we assume its value is the path to the
|
||||
// tor binary and use it. Otherwise, we search for an executable
|
||||
// called "tor" in the PATH and use it. Those two strategies
|
||||
// are implemented, respectively by tormobile.go and tordesktop.go.
|
||||
//
|
||||
// See session.go in the engine package for more details
|
||||
// concerning this second use case.
|
||||
package tunnel
|
||||
|
|
|
|||
Loading…
Reference in a new issue