MCPcopy
hub / github.com/grpc/grpc-go / WithLocalDNSResolution

Function WithLocalDNSResolution

dialoptions.go:430–434  ·  view source on GitHub ↗

WithLocalDNSResolution forces local DNS name resolution even when a proxy is specified in the environment. By default, the server name is provided directly to the proxy as part of the CONNECT handshake. This is ignored if WithNoProxy is used. # Experimental Notice: This API is EXPERIMENTAL and ma

()

Source from the content-addressed store, hash-verified

428// Notice: This API is EXPERIMENTAL and may be changed or removed in a
429// later release.
430func WithLocalDNSResolution() DialOption {
431 return newFuncDialOption(func(o *dialOptions) {
432 o.enableLocalDNSResolution = true
433 })
434}
435
436// WithTransportCredentials returns a DialOption which configures a connection
437// level security credentials (e.g., TLS/SSL). This should not be used together

Calls 1

newFuncDialOptionFunction · 0.85