spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.52k stars 3.1k forks source link

Notify does not work with a proxy/Tor #2008

Open tuv4aig opened 8 years ago

tuv4aig commented 8 years ago

I have a electrum daemon set up and the notify function is working fine until I enable a proxy through Tor, then it connects (daemon status does show "connected": true) and updates the wallet balance and blockchain height but it no longer receives transaction notifications from the server.

I try manually specifying .onion server, using a socks5 proxy and using a http proxy but nothing works.

Is there something on the client or server side blocking the notify/subscribe feature when going through a proxy?

tuv4aig commented 8 years ago

Enabling verbose mode gave me this: (5, 'bad input')

It is receiving the notification, the problem is that urllib2's request isn't being routed through the proxy properly in commands.py:614.

Is there an easy fix for this?

bauerj commented 6 years ago

Are you sure you can reach the target URL through the proxy? If it's a local URL, you will not be able to connect to it through Tor.