mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
Merge pull request #445 from betaxab/p1
ClientController: clash: add subscription-userinfo header
This commit is contained in:
commit
04a05a6ba4
@ -245,6 +245,7 @@ class ClientController extends Controller
|
|||||||
|
|
||||||
private function clash($user, $servers = [])
|
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';
|
$defaultConfig = base_path() . '/resources/rules/default.clash.yaml';
|
||||||
$customConfig = base_path() . '/resources/rules/custom.clash.yaml';
|
$customConfig = base_path() . '/resources/rules/custom.clash.yaml';
|
||||||
if (\File::exists($customConfig)) {
|
if (\File::exists($customConfig)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user