File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,10 @@ func (service *service) testHTTPEgress(port int) {
111111 panic (err )
112112 }
113113
114- transport := & http.Transport {
115- TLSClientConfig : & tls.Config {InsecureSkipVerify : * ignoreCertificatePtr },
114+ transport := & http.Transport {}
115+
116+ if * ignoreCertificatePtr {
117+ transport .TLSClientConfig = & tls.Config {InsecureSkipVerify : true }
116118 }
117119
118120 timeout := time .Duration (5 * time .Second )
@@ -190,7 +192,7 @@ func main() {
190192 fmt .Printf ("End Port: %d\n " , * endPortPtr )
191193 fmt .Printf ("Workers: %d\n " , * concurrentPtr )
192194 fmt .Printf ("HTTPS On: %t\n " , * useHTTPSPtr )
193- fmt .Printf ("Verify Certs: %t\n " , * ignoreCertificatePtr )
195+ fmt .Printf ("Ignore Certs: %t\n " , * ignoreCertificatePtr )
194196 fmt .Printf ("Throttle: %t\n " , * throttlePtr )
195197 fmt .Printf ("=========================\n \n " )
196198
You can’t perform that action at this time.
0 commit comments