ooni-probe-cli/internal/engine/tunnel
Simone Basso 2bafb179c3
refactor(tunnel): remove nil tunnels hack (#296)
* refactor(tunnel): remove nil tunnels hack

This code was originally introduced because a tunnel could be
nil in session.go. I have verified that every invocation of
tunnel.Start is careful to ensure that we have a tunnel name
and that we don't manipulate a nil tunnel.

For this reason, I'd rather remove this tricky bit of code and
further simplify the tunnel code.

Part of https://github.com/ooni/probe/issues/985

* even better docs
2021-04-05 16:08:16 +02:00
..
testdata feat(tunnel): introduce persistent tunnel state dir (#294) 2021-04-05 11:27:41 +02:00
config.go refactor(tunnel): remove nil tunnels hack (#296) 2021-04-05 16:08:16 +02:00
integration_test.go feat: create tunnel inside NewSession (#286) 2021-04-05 15:28:13 +02:00
psiphon_test.go refactor(tunnel): remove nil tunnels hack (#296) 2021-04-05 16:08:16 +02:00
psiphon.go refactor(tunnel): remove nil tunnels hack (#296) 2021-04-05 16:08:16 +02:00
tor_test.go refactor(tunnel): remove nil tunnels hack (#296) 2021-04-05 16:08:16 +02:00
tor.go refactor(tunnel): remove nil tunnels hack (#296) 2021-04-05 16:08:16 +02:00
tunnel_test.go refactor(tunnel): remove nil tunnels hack (#296) 2021-04-05 16:08:16 +02:00
tunnel.go refactor(tunnel): remove nil tunnels hack (#296) 2021-04-05 16:08:16 +02:00