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

This commit is contained in:
infosave2007
2026-01-24 14:50:55 +03:00
parent 4554a77033
commit 1018f96fc4
2 changed files with 31 additions and 18 deletions
+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'
],