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

Function browser_proxy_refresh

Scripts/Developer Base/Free Internet.py:1521–1528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1519
1520@app.route("/browser/proxy/refresh")
1521def browser_proxy_refresh():
1522 prefs = browser_prefs()
1523 cache = load_json(PROXY_CACHE_FILE, {})
1524 cache.pop(prefs.get("country", "US").upper(), None)
1525 save_json(PROXY_CACHE_FILE, cache)
1526 count = len(fetch_proxy_pool(prefs.get("country", "US")))
1527 flash(f"Proxy pool refreshed. {count} proxies cached for {prefs.get('country', 'US')}.")
1528 return redirect(request.referrer or url_for("browser_settings"))
1529
1530@app.route("/browser/update_tools")
1531def browser_update_tools():

Callers

nothing calls this directly

Calls 4

browser_prefsFunction · 0.70
load_jsonFunction · 0.70
save_jsonFunction · 0.70
fetch_proxy_poolFunction · 0.70

Tested by

no test coverage detected