update: fix exporting surge config file without file name

This commit is contained in:
coldice945 2022-08-15 16:19:10 +08:00
parent 36cb5f0bb5
commit c6317abba5

View File

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