fix: sing-box fingerprint

This commit is contained in:
xream 2024-01-18 11:29:15 +08:00
parent 228566116d
commit 42404537e8
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.179",
"version": "2.14.180",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {

View File

@ -205,6 +205,11 @@ const tlsParser = (proxy, parsedProxy) => {
enabled: true,
fingerprint: proxy['client-fingerprint'],
};
if (proxy.fingerprint && proxy.fingerprint !== '')
parsedProxy.tls.utls = {
enabled: true,
fingerprint: proxy.fingerprint,
};
if (proxy['reality-opts']) {
parsedProxy.tls.reality = { enabled: true };
if (proxy['reality-opts']['public-key'])