pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.77k stars 1.21k forks source link

proxy option #77

Closed shelterin closed 10 years ago

shelterin commented 10 years ago

Hi there,

not sure if it's an issue or a feature but it looks like the -x option assumes that one is using a socks proxy (with proxy dns support). And that's not my case for instance, especially when using the windows binary where i can't easily install a socks proxy and that I'm using a pool like stratum+tcp://XXX.YYYY.com:80.

if it's not an issue then maybe another option dedicated to http proxy without proxy dns support would help.

best regards,

Deel

pooler commented 10 years ago

As stated in the documentation, proxies are assumed to be HTTP proxies unless a different protocol is specified. That said, it is not possible to use Stratum with a HTTP proxy, because Stratum does not operate over HTTP.

shelterin commented 10 years ago

Thanks for the answer. I guess I won't find a way to occupy my windows CPUs for the moment.

On linux machines, I use proxychains to make minerd connect to a socks proxy with the above URL (stratum+tcp://) and tell proxychains to forward the connections (not the dns requests) to a HTTP proxy. It works pretty well, which lets me think that you can use stratum with http proxies provided that you give minerd a FIRST socks proxy. Now I have trully no idea how stratum works.

Thank you again for your time o/

pooler commented 10 years ago

Turns out you are right. It should be possible to tunnel an arbitrary TCP connection if the HTTP proxy supports the CONNECT method. Could you please test the latest git master and see if it works for you?

shelterin commented 10 years ago

Oupsie, didn't check my email lately. Gonna test that right now \o/

shelterin commented 10 years ago

Totally works for me my good sir !!! Thank you very much

Now would there be a good chap that could compile the win64 bin please ?

pooler commented 10 years ago

You're welcome.

Closing as fixed.