From 218aa4d9ee1572e7f14e538427539bdd2034a5d4 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Sun, 10 Oct 2021 11:43:44 +0100 Subject: [PATCH] Safety note --- crates/librqbit/src/http_api.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/librqbit/src/http_api.rs b/crates/librqbit/src/http_api.rs index 22e3ba4..8104af3 100644 --- a/crates/librqbit/src/http_api.rs +++ b/crates/librqbit/src/http_api.rs @@ -232,6 +232,8 @@ impl HttpApi { "GET /torrents/{index}": "Torrent details", "GET /torrents/{index}/haves": "The bitfield of have pieces", "GET /torrents/{index}/stats": "Torrent stats", + // This is kind of not secure as it just reads any local file that it has access to, + // or any URL, but whatever, ok for our purposes / thread model. "POST /torrents/": "Add a torrent here. magnet: or http:// or a local file." } });