From fd372917169b98627870797b27a72bbf3fe444c1 Mon Sep 17 00:00:00 2001 From: Xboard <147830212+cedar2025@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:26:31 +0800 Subject: [PATCH] feat: add appname display in hiddify add profile-title header to sing-box subscribe --- app/Protocols/SingBox.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Protocols/SingBox.php b/app/Protocols/SingBox.php index a0e1e18..3c79a01 100644 --- a/app/Protocols/SingBox.php +++ b/app/Protocols/SingBox.php @@ -26,6 +26,7 @@ class SingBox return response() ->json($this->config) + ->header('profile-title', 'base64:'. base64_encode($appName)) ->header('subscription-userinfo', "upload={$user['u']}; download={$user['d']}; total={$user['transfer_enable']}; expire={$user['expired_at']}") ->header('profile-update-interval', '24'); } @@ -318,4 +319,4 @@ class SingBox return $array; } -} \ No newline at end of file +}