Skip to content

Commit

Permalink
set no_proxy since some pc socket.gethostbyname is very slow
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Dec 10, 2021
1 parent d14d97d commit 0a8f329
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wda/requests_usbmux.py
Expand Up @@ -103,3 +103,7 @@ class Session(requests.Session):
def __init__(self, url_scheme=DEFAULT_SCHEME, *args, **kwargs):
super().__init__(*args, **kwargs)
self.mount(url_scheme, UsbmuxAdapter())

# set NO_PROXY to skip proxy check
# For some computer urllib.request.proxy_bypass is very slow
self.proxies.update({"no_proxy": "*"})

0 comments on commit 0a8f329

Please sign in to comment.