From 85686df2e6a5109cd311b258f44b1a7c500bcaf6 Mon Sep 17 00:00:00 2001 From: Beta Soft Date: Sun, 29 Aug 2021 21:30:38 +0800 Subject: [PATCH] Protocols: Clash: fix Clash app_name not found --- app/Http/Controllers/Client/Protocols/Clash.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Client/Protocols/Clash.php b/app/Http/Controllers/Client/Protocols/Clash.php index 2b2b79d4..23b358d9 100644 --- a/app/Http/Controllers/Client/Protocols/Clash.php +++ b/app/Http/Controllers/Client/Protocols/Clash.php @@ -20,6 +20,7 @@ class Clash { $servers = $this->servers; $user = $this->user; + $app_name = 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}");