feat: add appname display in hiddify

add profile-title header to sing-box subscribe
This commit is contained in:
Xboard 2024-11-08 17:26:31 +08:00 committed by GitHub
parent 2251f218d8
commit fd37291716
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}
}