From 6317c4a4f3eecbda7e33997afe59d760e824583e Mon Sep 17 00:00:00 2001 From: Beta Soft Date: Sun, 29 Aug 2021 21:44:51 +0800 Subject: [PATCH] Protocols: Clash: update --- app/Http/Controllers/Client/Protocols/Clash.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Client/Protocols/Clash.php b/app/Http/Controllers/Client/Protocols/Clash.php index 23b358d9..ad1b91fb 100644 --- a/app/Http/Controllers/Client/Protocols/Clash.php +++ b/app/Http/Controllers/Client/Protocols/Clash.php @@ -20,10 +20,10 @@ class Clash { $servers = $this->servers; $user = $this->user; - $app_name = config('v2board.app_name', 'V2Board'); + $appName = config('v2board.app_name', 'V2Board'); header("subscription-userinfo: upload={$user['u']}; download={$user['d']}; total={$user['transfer_enable']}; expire={$user['expired_at']}"); header('profile-update-interval: 24'); - header("content-disposition: filename={$app_name}"); + header("content-disposition: filename={$appName}"); $defaultConfig = base_path() . '/resources/rules/default.clash.yaml'; $customConfig = base_path() . '/resources/rules/custom.clash.yaml'; if (\File::exists($customConfig)) {