Skip to content

Commit

Permalink
fix: Reset socks proxy when set proxy to None
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jul 1, 2024
1 parent 8424e1d commit 9d0277b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions genshin/client/manager/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def proxy(self) -> typing.Optional[yarl.URL]:
def proxy(self, proxy: typing.Optional[aiohttp.typedefs.StrOrURL]) -> None:
if proxy is None:
self._proxy = None
self._socks_proxy = None
return

proxy = yarl.URL(proxy)
Expand Down

0 comments on commit 9d0277b

Please sign in to comment.