spb/internetpressure
Public
TypeScript 36.3%
Python 31.8%
Go 18%
JavaScript 9.8%
Shell 1.9%
SQL 1.4%
CSS 0.5%
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