feat(oonirun): add support for OONIRun v2 links (#844)
This diff adds support for OONIRun v2 links. Part of https://github.com/ooni/probe/issues/2184.
This commit is contained in:
parent
ebb78c2848
commit
9a0153a349
11 changed files with 644 additions and 22 deletions
|
|
@ -84,9 +84,7 @@ func NewLinkRunner(c *LinkConfig, URL string) LinkRunner {
|
|||
case strings.HasPrefix(URL, "ooni://nettest"):
|
||||
out.f = v1Measure
|
||||
default:
|
||||
// TODO(bassosimone): this panic will go away when we merge
|
||||
// the next patch which will implement v2.
|
||||
panic("unsupported OONI Run link")
|
||||
out.f = v2MeasureHTTPS
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue