feat(webconnectivity@v0.5): use TLS info from TH (#933)
This diff modifies webconnectivity@v0.5 to take decisions regarding TLS blocking by using the response from the TH rather than using questionable heuristics based on inspecting the TLSHandshake list alone. This change should improve correctness _when_ we're using the improved TH, which is currently used for 50% of the probes. See https://github.com/ooni/probe/issues/2257 While there, modify `control.go` to specify which control is being used.
This commit is contained in:
parent
34dc029b33
commit
3766ab2721
7 changed files with 90 additions and 110 deletions
|
|
@ -100,12 +100,13 @@ func (c *Control) Run(parentCtx context.Context) {
|
|||
}
|
||||
c.TestKeys.SetControlRequest(creq)
|
||||
|
||||
// TODO(bassosimone): the current TH will not perform TLS measurements for
|
||||
// 443 endpoints. However, we should modify the TH to do that, such that we're
|
||||
// able to be more confident about TLS measurements results.
|
||||
|
||||
// create logger for this operation
|
||||
ol := measurexlite.NewOperationLogger(c.Logger, "control for %s", creq.HTTPRequest)
|
||||
ol := measurexlite.NewOperationLogger(
|
||||
c.Logger,
|
||||
"control for %s using %s",
|
||||
creq.HTTPRequest,
|
||||
c.THAddr,
|
||||
)
|
||||
|
||||
// create an API client
|
||||
clnt := (&httpx.APIClientTemplate{
|
||||
|
|
|
|||
Loading…
Reference in a new issue