fix: 修复 sing-box max_early_data null 的问题

This commit is contained in:
xream committed 2025-09-05 12:09:49 +08:00
1 parent bb443c857a
commit 1b9e91ec05
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.20.16",
"version": "2.20.17",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {
@@ -78,7 +78,9 @@ const wsParser = (proxy, parsedProxy) => {
'early-data-header-name': early_data_header_name,
} = proxy['ws-opts'];
transport.early_data_header_name = early_data_header_name;
transport.max_early_data = parseInt(max_early_data, 10);
transport.max_early_data = max_early_data
? parseInt(max_early_data, 10)
: undefined;
if (wsPath !== '') transport.path = `${wsPath}`;
if (Object.keys(wsHeaders).length > 0) {
const headers = {};