From 3b385cec76f9c23a400cf748d2fba326c456ae3d Mon Sep 17 00:00:00 2001 From: Will Hawkins Date: Fri, 1 Apr 2022 15:02:46 -0400 Subject: Feature: Add support for self-signed certs from the test configuration server. --- networkQuality.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/networkQuality.go b/networkQuality.go index 16b9550..d450bf4 100644 --- a/networkQuality.go +++ b/networkQuality.go @@ -89,7 +89,9 @@ type Config struct { } func (c *Config) Get(configHost string, configPath string) error { - configClient := &http.Client{} + configTransport := http2.Transport{} + configTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} + configClient := &http.Client{Transport: &configTransport} // Extraneous /s in URLs is normally okay, but the Apple CDN does not // like them. Make sure that we put exactly one (1) / between the host // and the path. -- cgit v1.2.3