This is an automated email from the ASF dual-hosted git repository.

ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new ed9dcc9  Update TM to check securely (#6440)
ed9dcc9 is described below

commit ed9dcc9e3118ca9a24a7bab075b9e13851519f7c
Author: Taylor Clayton Frey <[email protected]>
AuthorDate: Mon Jan 3 08:31:05 2022 -0700

    Update TM to check securely (#6440)
    
    * Update TM to check securely
    
    * Remove unneeded Transport struct
    
    Co-authored-by: Taylor Frey <[email protected]>
---
 traffic_monitor/tmcheck/tmcheck.go | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/traffic_monitor/tmcheck/tmcheck.go 
b/traffic_monitor/tmcheck/tmcheck.go
index 9d960ca..5e155aa 100644
--- a/traffic_monitor/tmcheck/tmcheck.go
+++ b/traffic_monitor/tmcheck/tmcheck.go
@@ -21,7 +21,6 @@
 package tmcheck
 
 import (
-       "crypto/tls"
        "fmt"
        "io/ioutil"
        "net/http"
@@ -32,7 +31,7 @@ import (
        "github.com/apache/trafficcontrol/traffic_monitor/dsdata"
        to "github.com/apache/trafficcontrol/traffic_ops/v2-client"
 
-       "github.com/json-iterator/go"
+       jsoniter "github.com/json-iterator/go"
 )
 
 const RequestTimeout = time.Second * time.Duration(30)
@@ -44,8 +43,7 @@ const TrafficMonitorStatsPath = "/publish/Stats"
 
 func getClient() *http.Client {
        return &http.Client{
-               Transport: &http.Transport{TLSClientConfig: 
&tls.Config{InsecureSkipVerify: true}},
-               Timeout:   RequestTimeout,
+               Timeout: RequestTimeout,
        }
 }
 

Reply via email to