refactor(tunnel): simplify tor implementation (#290)
Simplify interaction within the package by avoiding to have a tor specific config. Use a Config instead. Part of https://github.com/ooni/probe/issues/985.
This commit is contained in:
parent
f739450370
commit
d9aff19be5
6 changed files with 109 additions and 92 deletions
|
|
@ -13,10 +13,14 @@ import (
|
|||
|
||||
// psiphonTunnel is a psiphon tunnel
|
||||
type psiphonTunnel struct {
|
||||
tunnel *clientlib.PsiphonTunnel
|
||||
// tunnel is the underlying psiphon tunnel
|
||||
tunnel *clientlib.PsiphonTunnel
|
||||
|
||||
// duration is the duration of the bootstrap
|
||||
duration time.Duration
|
||||
}
|
||||
|
||||
// makeworkingdir creates the working directory
|
||||
func makeworkingdir(config *Config) (string, error) {
|
||||
const testdirname = "oonipsiphon"
|
||||
workdir := filepath.Join(config.WorkDir, testdirname)
|
||||
|
|
|
|||
Loading…
Reference in a new issue