feat: add proxy support to osc builder

This commit is contained in:
Marin Salinas 2020-09-11 09:14:53 -05:00
parent ddc09ded89
commit eed047b83b
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ func (c *AccessConfig) GetRegion() string {
func (c *AccessConfig) NewOSCClientByRegion(region string) *osc.APIClient {
skipClient := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
TLSClientConfig: &tls.Config{InsecureSkipVerify: c.InsecureSkipTLSVerify},
Proxy: http.ProxyFromEnvironment,
},
}