summaryrefslogtreecommitdiff
path: root/networkQuality.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2022-04-01 15:02:46 -0400
committerWill Hawkins <[email protected]>2022-04-01 15:02:46 -0400
commit3b385cec76f9c23a400cf748d2fba326c456ae3d (patch)
treeede0efcce55410bac52387f88fedf61c4fcf1200 /networkQuality.go
parente563d7fb92815d846bcca35309179f916f5d3bb9 (diff)
Feature: Add support for self-signed certs from the test configuration server.
Diffstat (limited to 'networkQuality.go')
-rw-r--r--networkQuality.go4
1 files changed, 3 insertions, 1 deletions
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.