Closed ainghazal closed 2 years ago
(do note that only the last commit is the subject of this PR: the previous ones belong to #13 and will be rebased after that PR is merged)
feat: allow TunDialer to reuse an existing vpn.Client connection
for OONI probe runs, we perform serial tests and we'd like to avoid repeating the bootstrap for a single test Run()
To allow serial use, Pinger also needed a new constructor to avoid closing the underlying connection.
parts of this PR need to be reworked after an ongoing refactor in minivpn client/dialer.
closing in favor of #29
(do note that only the last commit is the subject of this PR: the previous ones belong to #13 and will be rebased after that PR is merged)
feat: allow TunDialer to reuse an existing vpn.Client connection
for OONI probe runs, we perform serial tests and we'd like to avoid repeating the bootstrap for a single test Run()
To allow serial use, Pinger also needed a new constructor to avoid closing the underlying connection.