quantumultx: add data plan & exipres notification support

Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
Beta Soft 2020-08-13 11:03:41 +08:00
parent 654e46a51e
commit b0afc290e3
No known key found for this signature in database
GPG Key ID: 180A31AB98D5C156

View File

@ -91,6 +91,7 @@ class ClientController extends Controller
private function quantumultX($user, $vmess = [], $trojan = [])
{
$uri = '';
header("subscription-userinfo: upload={$user->u}; download={$user->d}; total={$user->transfer_enable}; expire={$user->expired_at}");
foreach ($vmess as $item) {
$uri .= QuantumultX::buildVmess($user->uuid, $item);
}