Skip to content

Commit

Permalink
fix: sing-box fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 18, 2024
1 parent 2285661 commit 4240453
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
5 changes: 5 additions & 0 deletions backend/src/core/proxy-utils/producers/sing-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 4240453

Please sign in to comment.