SPB Git forge
15commits 1branches 0releases
29.7 MBsize
maindefault branch
10 days agolast push
TypeScript 36.3% Python 31.8% Go 18% JavaScript 9.8% Shell 1.9% SQL 1.4% CSS 0.5%
386 B · 17 lines go
Raw Blame History
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