Signed-off-by: Ying Li <ying.li@docker.com>
| ... | ... |
@@ -243,8 +243,9 @@ func newHTTPClient(host string, tlsOptions *tlsconfig.Options) (*http.Client, er |
| 243 | 243 |
// let the api client configure the default transport. |
| 244 | 244 |
return nil, nil |
| 245 | 245 |
} |
| 246 |
- |
|
| 247 |
- config, err := tlsconfig.Client(*tlsOptions) |
|
| 246 |
+ opts := *tlsOptions |
|
| 247 |
+ opts.ExclusiveRootPools = true |
|
| 248 |
+ config, err := tlsconfig.Client(opts) |
|
| 248 | 249 |
if err != nil {
|
| 249 | 250 |
return nil, err |
| 250 | 251 |
} |