From 72b80887a423a5310a1e031f5bfa4bff656ae011 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Fri, 5 Aug 2022 22:12:45 +0800 Subject: [PATCH] announce compact=0 do not return peers6 key --- public/announce.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/announce.php b/public/announce.php index b5b23bf1..ea64bec5 100644 --- a/public/announce.php +++ b/public/announce.php @@ -219,7 +219,6 @@ $rep_dict = [ "complete" => (int)$torrent["seeders"], "incomplete" => (int)$torrent["leechers"], "peers" => [], // By default it is a array object, only when `&compact=1` then it should be a string - "peers6" => [], ]; if ($compact == 1) { @@ -290,7 +289,7 @@ if (isset($event) && $event == "stopped") { 'port' => (int)$row['port'], ]; if ($no_peer_id) unset($peer['peer_id']); - $rep_dict['peers6'][] = $peer; + $rep_dict['peers'][] = $peer; } } }