Skip to content

Commit 979d4e9

Browse files
committed
feat(grpc): add grpc.WithNoProxy()
Longhorn 12304 Signed-off-by: Derek Su <derek.su@suse.com>
1 parent 2d5be06 commit 979d4e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/util/util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ func DetectGRPCServerAvailability(address string, waitIntervalInSecond int, shou
106106
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
107107
grpcOpts := []grpc.DialOption{
108108
grpc.WithTransportCredentials(insecure.NewCredentials()),
109+
grpc.WithNoProxy(),
109110
grpc.WithBlock(), // nolint: staticcheck
110111
}
111112
conn, err := grpc.DialContext(ctx, address, grpcOpts...) // nolint: staticcheck

0 commit comments

Comments
 (0)