Skip to content

Does not work when using SOCKS5 proxy #43

Description

@krk-krk

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions