From 4d2e358784cbf3851be2b52b33fd9187d27fc804 Mon Sep 17 00:00:00 2001 From: coldice945 Date: Mon, 22 Aug 2022 10:47:46 +0800 Subject: [PATCH] update: fix exporting surfboard config file without file name --- app/Http/Controllers/Client/Protocols/Surfboard.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/Client/Protocols/Surfboard.php b/app/Http/Controllers/Client/Protocols/Surfboard.php index 2eee1c1f..1864a409 100644 --- a/app/Http/Controllers/Client/Protocols/Surfboard.php +++ b/app/Http/Controllers/Client/Protocols/Surfboard.php @@ -21,6 +21,9 @@ class Surfboard $servers = $this->servers; $user = $this->user; + $appName = config('v2board.app_name', 'V2Board'); + header("content-disposition:attachment;filename*=UTF-8''".rawurlencode($appName).".conf"); + $proxies = ''; $proxyGroup = '';