From 2e7544c71ca7ec21df44bf977ce11a85d654c2a0 Mon Sep 17 00:00:00 2001 From: Beta Soft Date: Wed, 26 May 2021 17:07:38 +0800 Subject: [PATCH] ClientController: clash: add subscription-userinfo header --- app/Http/Controllers/Client/ClientController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Client/ClientController.php b/app/Http/Controllers/Client/ClientController.php index 24bc27af..35f2ac64 100644 --- a/app/Http/Controllers/Client/ClientController.php +++ b/app/Http/Controllers/Client/ClientController.php @@ -245,6 +245,7 @@ class ClientController extends Controller private function clash($user, $servers = []) { + header("subscription-userinfo: upload={$user['u']}; download={$user['d']}; total={$user['transfer_enable']}; expire={$user['expired_at']}"); $defaultConfig = base_path() . '/resources/rules/default.clash.yaml'; $customConfig = base_path() . '/resources/rules/custom.clash.yaml'; if (\File::exists($customConfig)) {