add multiple domains for workarounnd
This commit is contained in:
parent
c7b68e9e04
commit
1cec50ddb3
|
@ -48,10 +48,11 @@ def validate_proxies():
|
|||
r = requests.get(IP_CHECKER, proxies={'http': transform_smartproxy(pxy), 'https': transform_smartproxy(pxy)}, timeout=15)
|
||||
|
||||
# TODO: remove when fixed
|
||||
r2 = requests.get(SMARTPROXY_BV3HI_FIX, proxies={'http': transform_smartproxy(pxy), 'https': transform_smartproxy(pxy)}, timeout=15)
|
||||
if r2.status_code != 200:
|
||||
logger.debug(f'PROXY BV3HI TEST failed - {pxy} - got code {r2.status_code}')
|
||||
return
|
||||
for d in SMARTPROXY_BV3HI_FIX:
|
||||
r2 = requests.get(d, proxies={'http': transform_smartproxy(pxy), 'https': transform_smartproxy(pxy)}, timeout=15)
|
||||
if r2.status_code != 200:
|
||||
logger.debug(f'PROXY BV3HI TEST failed - {pxy} - got code {r2.status_code}')
|
||||
return
|
||||
else:
|
||||
r = requests.get(IP_CHECKER, proxies={'http': pxy, 'https': pxy}, timeout=15)
|
||||
|
||||
|
|
|
@ -15,7 +15,9 @@ SMARTPROXY_PASS = 'password'
|
|||
|
||||
# Fix the 503 error on some SmartProxy hosts.
|
||||
# TODO: remove when fixed.
|
||||
SMARTPROXY_BV3HI_FIX = 'https://files.catbox.moe/c8p1q6.png'
|
||||
SMARTPROXY_BV3HI_FIX = [
|
||||
'https://files.catbox.moe/c8p1q6.png'
|
||||
]
|
||||
|
||||
# Some domains just don't work through SmartProxy. Domains in this list are routed though
|
||||
# your proxies, not SmartProxy.
|
||||
|
@ -23,7 +25,8 @@ BYPASS_SMARTPROXY_DOMAINS = [
|
|||
'twitter.com'
|
||||
]
|
||||
|
||||
# The domains that SmartProxy gives you to connect to their service. Leave the array empty to disable this feature.
|
||||
# The domains that SmartProxy gives you to connect to their service.
|
||||
# Leave the array empty to disable this feature.
|
||||
SMARTPROXY_POOL = [
|
||||
# "dc.smartproxy.com:10001",
|
||||
# ...
|
||||
|
|
Loading…
Reference in New Issue