Skip to content

Commit

Permalink
Merge pull request #277 from ex-hentai/patch-8
Browse files Browse the repository at this point in the history
group peers by ip
  • Loading branch information
xiaomlove authored Sep 13, 2024
2 parents c464ff7 + 2cc057c commit 955a6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/userdetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= "<table border='1' cellspacing='0' cellpadding='5'><tr><td class='colhead'>Agent</td><td class='colhead'>IPV4</td><td class='colhead'>IPV6</td><td class='colhead'>Port</td></tr>";
Expand Down

0 comments on commit 955a6de

Please sign in to comment.