diff options
| author | Will Hawkins <[email protected]> | 2022-04-01 15:02:46 -0400 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2022-04-01 15:02:46 -0400 |
| commit | 3b385cec76f9c23a400cf748d2fba326c456ae3d (patch) | |
| tree | ede0efcce55410bac52387f88fedf61c4fcf1200 /networkQuality.go | |
| parent | e563d7fb92815d846bcca35309179f916f5d3bb9 (diff) | |
Feature: Add support for self-signed certs from the test configuration server.
Diffstat (limited to 'networkQuality.go')
| -rw-r--r-- | networkQuality.go | 4 |
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. |
