Merge pull request #14 from AmneziaVPN/patch-1

Update VpnClient.php
This commit is contained in:
Oleg Kirichenko
2025-12-06 20:58:26 +03:00
committed by GitHub
+2 -2
View File
@@ -148,8 +148,8 @@ class VpnClient {
$pdo = DB::conn();
// Get used IPs from database
$stmt = $pdo->prepare('SELECT client_ip FROM vpn_clients WHERE server_id = ? AND status = ?');
$stmt->execute([$serverData['id'], 'active']);
$stmt = $pdo->prepare('SELECT client_ip FROM vpn_clients WHERE server_id = ?');
$stmt->execute([$serverData['id']]);
$usedIPs = $stmt->fetchAll(PDO::FETCH_COLUMN);
// Parse subnet