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
()
| 428 | // Notice: This API is EXPERIMENTAL and may be changed or removed in a |
| 429 | // later release. |
| 430 | func 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 |