Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

i-norden
Copy link

@i-norden i-norden commented Aug 9, 2025

This adds a new client constructor method that lets one manually configure the underlying*http.Client being used by the RPC client. The specific motivation for this is to get around some frustrating behavior of http.ProxyFromEnvironment which is the only way to configure a proxy currently. http.ProxyFromEnvironment will ignore HTTP_PROXY and HTTPS_PROXY if they are set with localhost, any loopback address, or anything that resolves to one (see https://cs.opensource.google/go/x/net/+/internal-branch.go1.24-vendor:http/httpproxy/proxy.go;l=118). This makes it difficult to test things with a local proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant