Documentation/proxy: update due to Go 1.16 behavior change (#5630)

This commit is contained in:
Doug Fawley
2022-09-07 14:58:06 +00:00
committed by GitHub
parent 1530d3b241
commit 2ebd59436d

View File

@ -1,8 +1,9 @@
# Proxy # Proxy
HTTP CONNECT proxies are supported by default in gRPC. The proxy address can be HTTP CONNECT proxies are supported by default in gRPC. The proxy address can be
specified by the environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or specified by the environment variables `HTTPS_PROXY` and `NO_PROXY`. Before Go
the lowercase versions thereof). 1.16, if the `HTTPS_PROXY` environment variable is unset, `HTTP_PROXY` will be
used instead. (Note that these environment variables are case insensitive.)
## Custom proxy ## Custom proxy
@ -12,4 +13,4 @@ connection before giving it to gRPC.
If the default proxy doesn't work for you, replace the default dialer with your If the default proxy doesn't work for you, replace the default dialer with your
custom proxy dialer. This can be done using custom proxy dialer. This can be done using
[`WithDialer`](https://godoc.org/google.golang.org/grpc#WithDialer). [`WithDialer`](https://godoc.org/google.golang.org/grpc#WithDialer).