summaryrefslogtreecommitdiff
path: root/networkQuality.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2022-03-19 20:22:24 -0400
committerWill Hawkins <[email protected]>2022-03-19 20:22:24 -0400
commiteecdfd2d82a0c52701e62ec6042c1bec387f05df (patch)
tree155451c9e9bee5d5caf243e10a70e4b05fe9b071 /networkQuality.go
parent4155695baf06d9a7dde1c8ddeba20e4a577716ff (diff)
Bugfix: (#8) Segfault when running w/o SSL debugging
When running without SSL key logging enabled, the client will segfault. This patch corrects that (obvious) error.
Diffstat (limited to 'networkQuality.go')
-rw-r--r--networkQuality.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/networkQuality.go b/networkQuality.go
index d71411d..41caa4c 100644
--- a/networkQuality.go
+++ b/networkQuality.go
@@ -661,9 +661,11 @@ func main() {
}
newTransport := http2.Transport{}
- newTransport.TLSClientConfig = &tls.Config{
- KeyLogWriter: sslKeyFileConcurrentWriter,
- InsecureSkipVerify: true,
+ if sslKeyFileConcurrentWriter != nil {
+ newTransport.TLSClientConfig = &tls.Config{
+ KeyLogWriter: sslKeyFileConcurrentWriter,
+ InsecureSkipVerify: true,
+ }
}
newClient := http.Client{Transport: &newTransport}