Skip to content

Commit

Permalink
DynamoDB respect HTTP Connect proxies (#4271)
Browse files Browse the repository at this point in the history
* DynamoDB: Build http transport from defaults before manipulating parameters, this allows the transport to be pre-populated with proxy information if set by HTTPS_PROXY/NO_PROXY environment variables.
  • Loading branch information
kgtw authored Sep 15, 2020
1 parent 9141b58 commit cdcb24f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/backend/dynamo/dynamodbbk.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func New(ctx context.Context, params backend.Params) (*DynamoDBBackend, error) {
// handshakes performed.
httpClient := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
MaxIdleConns: defaults.HTTPMaxIdleConns,
MaxIdleConnsPerHost: defaults.HTTPMaxIdleConnsPerHost,
},
Expand Down

0 comments on commit cdcb24f

Please sign in to comment.