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:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user