Skip to content

Commit

Permalink
group peers by ip
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-hentai committed Sep 1, 2024
1 parent 8c3b05b commit 2cc057c
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 2cc057c

Please sign in to comment.