bibibi12345 commited on
Commit
29f0de1
·
1 Parent(s): 389a51f

proxy pool race condition fixed

Browse files
Files changed (1) hide show
  1. freeplay2api.py +2 -0
freeplay2api.py CHANGED
@@ -190,6 +190,7 @@ class FreeplayClient:
190
  }
191
 
192
  proxy_info = self.proxy_pool.get_proxy() if self.proxy_pool else None
 
193
  proxies = {"http": proxy_info['full'], "https": proxy_info['full']} if proxy_info else None
194
 
195
  logging.info(f"Registration attempt {attempt}/50 using proxy {proxy_info['full'] if proxy_info else 'None'}")
@@ -430,6 +431,7 @@ def initialize_app():
430
  "target_count": 20,
431
  "min_threshold": 5,
432
  "check_interval": 30,
 
433
  }
434
  }
435
  try:
 
190
  }
191
 
192
  proxy_info = self.proxy_pool.get_proxy() if self.proxy_pool else None
193
+ # Use HTTP proxy for HTTPS requests (CONNECT tunneling)
194
  proxies = {"http": proxy_info['full'], "https": proxy_info['full']} if proxy_info else None
195
 
196
  logging.info(f"Registration attempt {attempt}/50 using proxy {proxy_info['full'] if proxy_info else 'None'}")
 
431
  "target_count": 20,
432
  "min_threshold": 5,
433
  "check_interval": 30,
434
+ "proxy_protocol": "https"
435
  }
436
  }
437
  try: