mempool-cli icon indicating copy to clipboard operation
mempool-cli copied to clipboard

http: use ProxyFromEnvironment

Open qustavo opened this issue 4 years ago • 5 comments

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

Closes #2

qustavo avatar Nov 02 '21 16:11 qustavo

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.

samthelion17 avatar Nov 02 '21 17:11 samthelion17

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 ?

qustavo avatar Nov 02 '21 17:11 qustavo

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.

samthelion17 avatar Nov 02 '21 19:11 samthelion17

Are you behind an HTTP or SOCKS proxy?

qustavo avatar Nov 03 '21 00:11 qustavo

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

samthelion17 avatar Nov 03 '21 00:11 samthelion17