Skip to content

Commit

Permalink
Add support for http proxy (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbilski committed Jun 29, 2023
1 parent 3f9ea71 commit 52ac9a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func (c *OAuth2Cmd) Run(cconfig *oauth2.ClientConfig) func(cmd *cobra.Command, a
}

tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: cconfig.Insecure,
MinVersion: tls.VersionTLS12,
Expand Down

0 comments on commit 52ac9a5

Please sign in to comment.