Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work when using SOCKS5 proxy #43

Open
krk-krk opened this issue Aug 4, 2020 · 0 comments
Open

Does not work when using SOCKS5 proxy #43

krk-krk opened this issue Aug 4, 2020 · 0 comments

Comments

@krk-krk
Copy link

krk-krk commented Aug 4, 2020

Solution:

In eapilib.go, http.Transport is being initialized to set TLSClientConfig. Adding one line would resolve this issue.

 func (conn *HTTPSEapiConnection) send(data []byte) (*JSONRPCResponse, error) {
     ...
     tr := &http.Transport{
+        Proxy: http.ProxyFromEnvironment,   // adding this line resolves the issue
         TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
     }
 }

Request you to make this change.

Refer to DefaultTransport in https://golang.org/pkg/net/http/

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

No branches or pull requests

1 participant