1
0
mirror of https://github.com/mayflower/docker-ls.git synced 2025-11-28 00:01:09 +03:00

Add an option for ignoring SSL cert errors.

This commit is contained in:
Christian Speckner
2016-02-26 13:46:27 +01:00
parent 1eae834b66
commit 15f18a28c2
5 changed files with 30 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ func (r *basicAuthConnector) Request(method string, url *url.URL, hint string) (
func NewBasicAuthConnector(cfg Config) Connector {
return &basicAuthConnector{
cfg: cfg,
httpClient: http.DefaultClient,
httpClient: createHttpClient(cfg),
semaphore: newSemaphore(cfg.MaxConcurrentRequests()),
stat: new(statistics),
}