fix(qr): Use raw VLESS URI in last_config->config

Instead of generating a JSON config for X-Ray, pass the raw VLESS URI string
wrapped in a JSON object  inside .
This matches the behavior of WireGuard config handling in the master branch
and is likely the expected format for Amnezia Android X-Ray import.
This commit is contained in:
infosave2007
2026-01-24 13:48:57 +03:00
parent 174a2fb1e8
commit dde0ff9ea1
2 changed files with 25 additions and 46 deletions
+1 -1
View File
@@ -960,7 +960,7 @@ class VpnClient
}
// Use QrUtil to encode correct X-Ray payload
$payloadXray = QrUtil::encodeXrayPayload($host, $port, $clientId, $fragment, $reality);
$payloadXray = QrUtil::encodeXrayPayload($host, $port, $clientId, $fragment, $reality, $config);
return QrUtil::pngBase64($payloadXray);
}
}