ソースを参照

update: add cfw new feature

tokumeikoi 2 年 前
コミット
1d304d608b
1 ファイル変更1 行追加0 行削除
  1. 1 0
      app/Http/Controllers/Client/Protocols/Clash.php

+ 1 - 0
app/Http/Controllers/Client/Protocols/Clash.php

@@ -24,6 +24,7 @@ class Clash
         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:attachment;filename*=UTF-8''".rawurlencode($appName));
+        header("profile-web-page-url:" . config('v2board.app_url'));
         $defaultConfig = base_path() . '/resources/rules/default.clash.yaml';
         $customConfig = base_path() . '/resources/rules/custom.clash.yaml';
         if (\File::exists($customConfig)) {