Skip to content

Commit 1b9e91e

Browse files
committed
fix: 修复 sing-box max_early_data null 的问题
1 parent bb443c8 commit 1b9e91e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.20.16",
3+
"version": "2.20.17",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/producers/sing-box.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ const wsParser = (proxy, parsedProxy) => {
7878
'early-data-header-name': early_data_header_name,
7979
} = proxy['ws-opts'];
8080
transport.early_data_header_name = early_data_header_name;
81-
transport.max_early_data = parseInt(max_early_data, 10);
81+
transport.max_early_data = max_early_data
82+
? parseInt(max_early_data, 10)
83+
: undefined;
8284
if (wsPath !== '') transport.path = `${wsPath}`;
8385
if (Object.keys(wsHeaders).length > 0) {
8486
const headers = {};

0 commit comments

Comments
 (0)