Skip to content

Commit

Permalink
feat: add support for ALL_PROXY (#10451)
Browse files Browse the repository at this point in the history
Signed-off-by: xniu <[email protected]>
Co-authored-by: xniu <[email protected]>
  • Loading branch information
yushiwho and xniunv authored Nov 20, 2023
1 parent 61abc80 commit 8d8009d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ require (
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
go.starlark.net v0.0.0-20220328144851-d1966c6b9fcd // indirect
golang.org/x/mod v0.9.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/net v0.17.0
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.3.0
Expand Down
3 changes: 2 additions & 1 deletion util/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/argoproj/argo-cd/v2/common"
"github.com/sirupsen/logrus"
"golang.org/x/net/proxy"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials"
Expand Down Expand Up @@ -63,7 +64,7 @@ func BlockingDial(ctx context.Context, network, address string, creds credential

dialer := func(ctx context.Context, address string) (net.Conn, error) {

conn, err := (&net.Dialer{Cancel: ctx.Done()}).Dial(network, address)
conn, err := proxy.Dial(ctx, network, address)
if err != nil {
writeResult(err)
return nil, err
Expand Down

0 comments on commit 8d8009d

Please sign in to comment.