From 20ca2d0df9c7d554d595eac89576f72c7a0f1815 Mon Sep 17 00:00:00 2001 From: infosave2007 Date: Fri, 30 Jan 2026 15:58:15 +0300 Subject: [PATCH] fix: Do not inherit client_id from server protocols (prevents duplicate UUIDs) --- inc/VpnClient.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/inc/VpnClient.php b/inc/VpnClient.php index 9af85d6..3734494 100644 --- a/inc/VpnClient.php +++ b/inc/VpnClient.php @@ -220,6 +220,13 @@ class VpnClient } } } + + // CRITICAL FIX: Do NOT inherit client_id from server installation data (server_protocols). + // This prevents new clients from duplicating the admin's UUID. + if (isset($vars['client_id']) && (stripos($slug, 'xray') !== false || stripos($slug, 'vless') !== false)) { + unset($vars['client_id']); + } + if (isset($vars['publickey']) && empty($vars['reality_public_key'])) { $vars['reality_public_key'] = $vars['publickey']; }