mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-03 17:57:03 +00:00
fix: 修复 sing-box max_early_data null 的问题
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -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 = {};
|
||||
|
||||
Reference in new issue
Block a user