SPB Git
386 B · 17 lines go
1package http23import (4	"context"5	"crypto/x509"67	"internetpressure.io/probe-agent/internal/protocol"8)910// runWithRoots runs the check trusting the given roots (tests only).11func runWithRoots(c *Checker, t protocol.Target, roots *x509.CertPool) protocol.Measurement {12	prev := testRoots13	testRoots = roots14	defer func() { testRoots = prev }()15	return c.Run(context.Background(), t)16}17
Files · 0fa73d414fa19a9819f246afc8a0f444dd5a4cb7
Menu

Theme