()
| 1549 | |
| 1550 | @app.route("/browser/tor/start") |
| 1551 | def browser_tor_start(): |
| 1552 | prefs = browser_prefs() |
| 1553 | ok, msg = start_tor() |
| 1554 | if ok and (prefs.get("tor_autostart") or request.args.get("set_mode") == "1"): |
| 1555 | prefs["mode"] = "tor" |
| 1556 | save_browser_prefs(prefs) |
| 1557 | flash(msg) |
| 1558 | return redirect(request.referrer or url_for("browser_settings")) |
| 1559 | |
| 1560 | |
| 1561 | @app.route("/browser/tor/stop") |
nothing calls this directly
no test coverage detected