Browse Source

network: fix monkey-patching in set_proxy

3.3.3.1
SomberNight 6 years ago
parent
commit
97ea4679a7
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/network.py

2
electrum/network.py

@ -426,7 +426,7 @@ class Network(PrintError):
def set_proxy(self, proxy: Optional[dict]):
self.proxy = proxy
# Store these somewhere so we can un-monkey-patch
if not hasattr(socket, "_socketobject"):
if not hasattr(socket, "_getaddrinfo"):
socket._getaddrinfo = socket.getaddrinfo
if proxy:
self.print_error('setting proxy', proxy)

Loading…
Cancel
Save