fix: Do not inherit client_id from server protocols (prevents duplicate UUIDs)

This commit is contained in:
infosave2007
2026-01-30 15:58:15 +03:00
parent 46938f77c7
commit 20ca2d0df9
+7
View File
@@ -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'])) { if (isset($vars['publickey']) && empty($vars['reality_public_key'])) {
$vars['reality_public_key'] = $vars['publickey']; $vars['reality_public_key'] = $vars['publickey'];
} }