NewClient functions behaviour is incompatible with secure forward-proxies · Issue #7556 · grpc/grpc-go (original) (raw)
What version of gRPC are you using?
1.64.0 and v1.67.0-dev
What version of Go are you using (go version
)?
1.22
What operating system (Linux, Windows, …) and version?
Linux
What did you do?
If possible, provide a recipe for reproducing the error.
- setup a squid proxy
- setup grpc client(examples/helloworld/greeter_client) and grpc server(examples/helloworld/greeter_server) to use tls
- run grpc server
- on client shell set env var for using proxy(export https_proxy="http://<proxy_host:port")
- start tcpdump
What did you expect to see?
the target should be hostname while it's sent to proxy and dns resolution for target should happen on proxy
What did you see instead?
dns is resolved on the client and only ip is sent.
Attaching tcpdump screenshot with difference