fix(qr): Pass raw VLESS URI in last_config without JSON wrapper

This commit is contained in:
infosave2007 committed 2026-01-24 14:50:55 +03:00
1 parent 4554a77033
commit 1018f96fc4
2 files changed
+31 -18

No files matched your search

+2 -2
View File
@@ -439,8 +439,8 @@ class QrUtil
[
'xray' => [
'isThirdPartyConfig' => true,
// Wrap the raw VLESS URI in a "config" field inside last_config
'last_config' => json_encode(['config' => $rawConfig], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
// Pass raw VLESS URI directly, without JSON wrapper
'last_config' => $rawConfig,
'port' => (string) $port,
'transport_proto' => 'tcp'
],