ooni-probe-cli/cmd/ooniprobe/internal/nettests/ndt.go

16 lines
353 B
Go
Raw Normal View History

2019-12-02 16:57:55 +01:00
package nettests
2018-02-13 16:16:23 +01:00
// NDT test implementation. We use v7 of NDT since 2020-03-12.
2018-02-13 16:16:23 +01:00
type NDT struct {
}
// Run starts the test
2019-12-02 16:57:55 +01:00
func (n NDT) Run(ctl *Controller) error {
// Since 2020-03-18 probe-engine exports v7 as "ndt".
builder, err := ctl.Session.NewExperimentBuilder("ndt")
if err != nil {
return err
}
return ctl.Run(builder, []string{""})
2018-02-13 16:16:23 +01:00
}