From 2cc057ce93450199cede8a7a52be8822bc5b4671 Mon Sep 17 00:00:00 2001 From: ex-hentai <96158157+ex-hentai@users.noreply.github.com> Date: Thu, 3 Aug 2023 22:28:01 +0800 Subject: [PATCH] group peers by ip --- public/userdetails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/userdetails.php b/public/userdetails.php index 5cd202153..830e2a44e 100644 --- a/public/userdetails.php +++ b/public/userdetails.php @@ -238,7 +238,7 @@ function bark($msg) tr_small($lang_userdetails['row_ip_address'], $user['ip'].$locationinfo.$seedBoxIcon, 1); } $clientselect = ''; -$res = sql_query("SELECT peer_id, agent, ipv4, ipv6, port FROM peers WHERE userid = {$user['id']} GROUP BY agent") or sqlerr(); +$res = sql_query("SELECT peer_id, agent, ipv4, ipv6, port FROM peers WHERE userid = {$user['id']} GROUP BY agent, ipv4, ipv6, port") or sqlerr(); if (mysql_num_rows($res) > 0) { $clientselect .= "";
AgentIPV4IPV6Port