From 1ffb2db0ca4339aa44f734c5a359f2f8866c9f70 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Tue, 5 Oct 2021 13:02:56 +0200 Subject: [PATCH] fix(measurex): quic follow-up only with https scheme (#538) Closes https://github.com/ooni/probe/issues/1799 --- internal/measurex/measurer.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/measurex/measurer.go b/internal/measurex/measurer.go index 542afab..66e7f34 100644 --- a/internal/measurex/measurer.go +++ b/internal/measurex/measurer.go @@ -778,7 +778,12 @@ func (mx *Measurer) MeasureURL( for epnt := range mx.HTTPEndpointGetParallel(ctx, cookies, epnts...) { m.Endpoints = append(m.Endpoints, epnt) } - mx.maybeQUICFollowUp(ctx, m, cookies, epnts...) + switch parsed.Scheme { + case "https": + mx.maybeQUICFollowUp(ctx, m, cookies, epnts...) + default: + // nothing to do + } m.EpntsRuntime = time.Since(epntRuntime) m.fillRedirects() return m, nil