mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-05-17 00:25:51 +03:00
github connection fallback
This commit is contained in:
@@ -77,7 +77,10 @@ class _PinnedHTTPSHandler(urllib.request.HTTPSHandler):
|
||||
self.sock, server_hostname=self._tunnel_host or self.host
|
||||
)
|
||||
|
||||
return self.do_open(_Conn, req)
|
||||
try:
|
||||
return self.do_open(_Conn, req)
|
||||
except Exception:
|
||||
return super().https_open(req)
|
||||
|
||||
|
||||
def build_github_opener() -> urllib.request.OpenerDirector:
|
||||
|
||||
Reference in New Issue
Block a user