fix: call evaluate() in worker mode before checking results
failcount was initialized to 0 and never updated because evaluate() was skipped, causing all proxies to pass.
This commit is contained in:
3
ppf.py
3
ppf.py
@@ -775,7 +775,8 @@ def worker_main(config):
|
||||
state = completion_queue.get(timeout=1)
|
||||
completed += 1
|
||||
|
||||
if state.failcount == 0:
|
||||
success, _ = state.evaluate()
|
||||
if success:
|
||||
latency_sec = (state.last_latency_ms / 1000.0) if state.last_latency_ms else 0
|
||||
proxy_addr = state.proxy
|
||||
if state.auth:
|
||||
|
||||
Reference in New Issue
Block a user