refactor(tunnel): pass the config as a pointer (#288)

Part of https://github.com/ooni/probe/issues/985
This commit is contained in:
Simone Basso 2021-04-03 20:12:56 +02:00 committed by GitHub
commit b53290cbfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 11 deletions

View file

@ -350,7 +350,7 @@ func (s *Session) MaybeStartTunnel(ctx context.Context, name string) error {
// sets a proxy, the second check for s.tunnel is for robustness.
return ErrAlreadyUsingProxy
}
tunnel, err := tunnel.Start(ctx, tunnel.Config{
tunnel, err := tunnel.Start(ctx, &tunnel.Config{
Name: name,
Session: s,
})