From 23accbfe1ecd1bf7e1e68cfa1fc21df874f05d56 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Mon, 25 Aug 2025 18:40:44 +0200 Subject: [PATCH] fixed / route --- main_app.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main_app.py b/main_app.py index 4629a61..8645d54 100644 --- a/main_app.py +++ b/main_app.py @@ -209,11 +209,15 @@ async def fake_claim_exchange(request: Request, _=host_required([Hosts.PLEX])): async def favicon(): return FileResponse("favicon.ico") +@app.get("/proxy") +async def hack(): + return {"status": "ok"} + @app.api_route("/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS", "HEAD"]) async def catch_all(request: Request, path: str): - if path == "": - return {"status": "PROXY ONLINE"} + if request.base_url.hostname in ["127.0.0.1", "localhost", "0.0.0.0"]: + return {"status": "proxy running ok"} upstream_response = await call_official(request, path)