ooni / minivpn

A minimalistic OpenVPN implementation in Go
GNU General Public License v3.0
38 stars 6 forks source link

allow TunDialer to reuse an existing vpn.Client connection #14

Closed ainghazal closed 2 years ago

ainghazal commented 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.

ainghazal commented 2 years ago

parts of this PR need to be reworked after an ongoing refactor in minivpn client/dialer.

ainghazal commented 2 years ago

closing in favor of #29