From 9192ead36d8fa78599bd2329f486e7beb9d31c2c Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 7 Dec 2020 17:14:48 +0100 Subject: [PATCH] cli: expose riseupvpn (#171) --- internal/nettests/groups.go | 1 + internal/nettests/riseupvpn.go | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 internal/nettests/riseupvpn.go diff --git a/internal/nettests/groups.go b/internal/nettests/groups.go index 16285e5..8bb364c 100644 --- a/internal/nettests/groups.go +++ b/internal/nettests/groups.go @@ -44,6 +44,7 @@ var All = map[string]Group{ Label: "Circumvention Tools", Nettests: []Nettest{ Psiphon{}, + RiseupVPN{}, Tor{}, }, UnattendedOK: true, diff --git a/internal/nettests/riseupvpn.go b/internal/nettests/riseupvpn.go new file mode 100644 index 0000000..185fbce --- /dev/null +++ b/internal/nettests/riseupvpn.go @@ -0,0 +1,17 @@ +package nettests + +// RiseupVPN test implementation +type RiseupVPN struct { +} + +// Run starts the test +func (h RiseupVPN) Run(ctl *Controller) error { + builder, err := ctl.Session.NewExperimentBuilder( + "riseupvpn", + ) + if err != nil { + return err + } + + return ctl.Run(builder, []string{""}) +}