Merge pull request #534 from coldice945/fix-surge-filename

fix exporting surge config file without file name
This commit is contained in:
tokumeikoi 2022-08-19 02:17:31 +08:00 committed by GitHub
commit 28c5844777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,9 @@ class Surge
$servers = $this->servers; $servers = $this->servers;
$user = $this->user; $user = $this->user;
$appName = config('v2board.app_name', 'V2Board');
header("content-disposition:attachment;filename*=UTF-8''".rawurlencode($appName).".conf");
$proxies = ''; $proxies = '';
$proxyGroup = ''; $proxyGroup = '';