mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-07-31 15:55:08 +03:00
don't retry fronting connect
This commit is contained in:
@@ -136,6 +136,8 @@ class _WsPool:
|
|||||||
self.try_fronting_first = False
|
self.try_fronting_first = False
|
||||||
return ws
|
return ws
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
|
if self.try_fronting_first:
|
||||||
|
return None
|
||||||
return await self._connect_fronted(target_ip, domain)
|
return await self._connect_fronted(target_ip, domain)
|
||||||
except WsHandshakeError as exc:
|
except WsHandshakeError as exc:
|
||||||
if exc.is_redirect:
|
if exc.is_redirect:
|
||||||
|
|||||||
Reference in New Issue
Block a user