Merge pull request #478 from betaxab/fix-clash-appname

Protocols: Clash: fix Clash app_name not fould
This commit is contained in:
tokumeikoi 2021-08-29 22:38:38 +09:00 committed by GitHub
commit 3da4de02d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}");