refactor(tunnel): provide TorArgs and TorBinary directly (#293)
We're trying to remove a circular dependency between the measurement Session and the tunnel package. To this end, continue to reduce the dependency scope by providing TorArgs and TorBinary directly. Part of https://github.com/ooni/probe/issues/985
This commit is contained in:
parent
1eb63bc4b6
commit
47aa773731
5 changed files with 21 additions and 9 deletions
|
|
@ -18,6 +18,16 @@ type Config struct {
|
|||
// Session is the current measurement session.
|
||||
Session Session
|
||||
|
||||
// TorArgs contains the arguments that you want us to pass
|
||||
// to the tor binary when invoking it. By default we do not
|
||||
// pass any extra argument. This flag might be useful to
|
||||
// configure pluggable transports.
|
||||
TorArgs []string
|
||||
|
||||
// TorBinary is the path of the TorBinary we SHOULD be
|
||||
// executing. When not set, we execute `tor`.
|
||||
TorBinary string
|
||||
|
||||
// WorkDir is the directory in which the tunnel SHOULD
|
||||
// store its state, if any.
|
||||
WorkDir string
|
||||
|
|
|
|||
Loading…
Reference in a new issue