mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
network: fix monkey-patching in set_proxy
This commit is contained in:
parent
3d424077fd
commit
97ea4679a7
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ class Network(PrintError):
|
||||||
def set_proxy(self, proxy: Optional[dict]):
|
def set_proxy(self, proxy: Optional[dict]):
|
||||||
self.proxy = proxy
|
self.proxy = proxy
|
||||||
# Store these somewhere so we can un-monkey-patch
|
# Store these somewhere so we can un-monkey-patch
|
||||||
if not hasattr(socket, "_socketobject"):
|
if not hasattr(socket, "_getaddrinfo"):
|
||||||
socket._getaddrinfo = socket.getaddrinfo
|
socket._getaddrinfo = socket.getaddrinfo
|
||||||
if proxy:
|
if proxy:
|
||||||
self.print_error('setting proxy', proxy)
|
self.print_error('setting proxy', proxy)
|
||||||
|
|
Loading…
Add table
Reference in a new issue