Skip to content

Commit 1d6cecf

Browse files
leo9800xiaokangwang
authored andcommitted
bugfix: avoid DNS querying _grpc_config.<domain> with gRPC transport
Signed-off-by: Leo <i@hardrain980.com>
1 parent b2c3b25 commit 1d6cecf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport/internet/grpc/dial.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ func getGrpcClient(ctx context.Context, dest net.Destination, dialOption grpc.Di
142142
detachedContext := core.ToBackgroundDetachedContext(ctx)
143143
return internet.DialSystem(detachedContext, net.TCPDestination(address, port), streamSettings.SocketSettings)
144144
}),
145+
grpc.WithDisableServiceConfig(),
145146
)
146147
canceller = func() {
147148
stateTyped.scopedDialerAccess.Lock()

0 commit comments

Comments
 (0)