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

@@ -124,7 +124,7 @@ func (r *tokenAuthConnector) GetStatistics() Statistics {
func NewTokenAuthConnector(cfg Config) Connector {
connector := tokenAuthConnector{
cfg: cfg,
httpClient: http.DefaultClient,
httpClient: createHttpClient(cfg),
semaphore: newSemaphore(cfg.MaxConcurrentRequests()),
tokenCache: newTokenCache(),
stat: new(statistics),