mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-30 15:59:28 -06:00
update: working optimized announce
This commit is contained in:
@@ -75,7 +75,7 @@ class UserController extends Controller
|
||||
|
||||
$clients = $user->peers()
|
||||
->select('agent', 'port')
|
||||
->selectRaw('INET6_NTOA(ip) as ip, MIN(created_at), MAX(updated_at), COUNT(*) as num_peers')
|
||||
->selectRaw('ip as ip, MIN(created_at), MAX(updated_at), COUNT(*) as num_peers')
|
||||
->groupBy(['ip', 'port', 'agent'])
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user