remove TLS bypass and rename import

This commit is contained in:
nils måsén 2022-12-07 16:06:04 +01:00
parent a762ec39aa
commit 72589feffd
2 changed files with 1 additions and 4 deletions

View file

@ -1,7 +1,6 @@
package registry
import (
"crypto/tls"
"net"
"net/http"
"time"
@ -34,7 +33,6 @@ func NewClient() *Client {
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
}
return NewClientWithHTTPClient(&http.Client{Transport: tr})
}