update: working optimized announce

This commit is contained in:
HDVinnie
2023-01-17 22:01:28 -05:00
parent bf9b72c47c
commit b044cbc92c
9 changed files with 71 additions and 98 deletions

View File

@@ -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();