MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / mark_proxy_bad

Function mark_proxy_bad

Scripts/Developer Base/Free Internet.py:613–620  ·  view source on GitHub ↗
(country: str, proxy: str, ttl: int = BAD_PROXY_TTL)

Source from the content-addressed store, hash-verified

611
612
613def mark_proxy_bad(country: str, proxy: str, ttl: int = BAD_PROXY_TTL) -> None:
614 if not proxy:
615 return
616 state = load_proxy_state()
617 key = country.upper()
618 bucket = state.setdefault(key, {})
619 bucket[proxy] = int(time.time()) + ttl
620 save_proxy_state(state)
621
622
623def mark_proxy_good(country: str, proxy: str) -> None:

Callers 1

proxied_fetchFunction · 0.70

Calls 2

load_proxy_stateFunction · 0.70
save_proxy_stateFunction · 0.70

Tested by

no test coverage detected