mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
ClientController: clash: add subscription-userinfo header
This commit is contained in:
parent
1fb3f62cff
commit
2e7544c71c
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user