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/
Solution:
In eapilib.go, http.Transport is being initialized to set TLSClientConfig. Adding one line would resolve this issue.
Request you to make this change.
Refer to
DefaultTransportin https://golang.org/pkg/net/http/