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

http: use ProxyFromEnvironment #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

qustavo
Copy link
Collaborator

@qustavo qustavo commented Nov 2, 2021

@samthelion17, could you confirm this is working as expected?

Closes #2

@samthelion17
Copy link

It's not working for me, i'm getting:
dial tcp: lookup mempool.space on 127.0.0.53:53: server misbehaving
and sometimes:
dial tcp: lookup mempool.space on 127.0.0.53:53: read udp 127.0.0.1:39758->127.0.0.53:53: i/o timeout
and I tried setting the proxy on /etc/environment and via the export command.

@qustavo
Copy link
Collaborator Author

qustavo commented Nov 2, 2021

Looks like a DNS issue, what environment variable are you using? Any of these: https://cs.opensource.google/go/x/net/+/4a448f88:http/httpproxy/proxy.go;l=92-93 ?

@samthelion17
Copy link

I tried both of those, none worked. It sounded like a DNS issue to me too but, in my case DNS is handled by the parent proxy. I'm completely disconnected from the internet, my only window is that proxy server. OR, maybe I'm doing something wrong...
I downloaded the "http-proxy-client" branch, ran directly from the code go run main.go... didn't work, then I compiled it go build and neither way worked.

@qustavo
Copy link
Collaborator Author

qustavo commented Nov 3, 2021

Are you behind an HTTP or SOCKS proxy?

@samthelion17
Copy link

HTTP, but I can test with Socks too if I use TOR...

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.

Add http(s) and/or socks proxy support
2 participants