added proxies to default session

This commit is contained in:
TPV committed 2026-07-17 20:22:57 -07:00
1 parent 1441e7179c
commit 8e077515ff
1 file changed
+4 -1
+4 -1
View File
@@ -15,12 +15,15 @@ from aioweb_tls import CurlCffi, TLSSession
from monitor_utils.constants import CLIENT_IDENTIFIERS, RETRY_LIMIT
def get_default_session() -> TLSSession:
def get_default_session(proxies: AioProxies) -> TLSSession:
"""Return a TLSSession impersonating a random client fingerprint.
Fingerprint rotation lives here so every monitor rotates the same way; the
caller owns the session lifetime via ``async with``.
Args:
proxies: used for rotating proxies inside of send_request
Returns:
A TLSSession over a curl_cffi backend with a random impersonation.
"""