Code Monkey home page Code Monkey logo

Comments (7)

dajohi avatar dajohi commented on June 14, 2024

Does
Proxy: "127.0.0.1:1080",
work?

from btcrpcclient.

sturd avatar sturd commented on June 14, 2024

No it doesn't. I'm getting;

parse 127.0.0.1:1080: first path segment in URL cannot contain colon

with that configuration.

from btcrpcclient.

dajohi avatar dajohi commented on June 14, 2024

http://127.0.0.1:1080

from btcrpcclient.

sturd avatar sturd commented on June 14, 2024

Getting;

Post http://192.168.1.10:8332: EOF

when prefixing the http:// scheme. Same as when prefixing with socks:// as the scheme.

from btcrpcclient.

sturd avatar sturd commented on June 14, 2024

Have managed to work around this by removing;

var proxyFunc func(*http.Request) (*url.URL, error)
if config.Proxy != "" {
	proxyURL, err := url.Parse(config.Proxy)
	if err != nil {
		return nil, err
	}
	proxyFunc = http.ProxyURL(proxyURL)
}

and instead overwriting the client.Transport with a new one where Dial() is provided by socks.Proxy{}. It kinda resembles the solution which is implemented for the websocket proxy configuration further down.

from btcrpcclient.

sturd avatar sturd commented on June 14, 2024

A little stuck for time, at the moment, but can test and submit a patch this weekend if it would be helpful.

from btcrpcclient.

davecgh avatar davecgh commented on June 14, 2024

This issue was moved to btcsuite/btcd#1005

from btcrpcclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.