From c4b85a05a0937001a756c9d2a6bf354f2f1fadf9 Mon Sep 17 00:00:00 2001 From: tdjisdj <125038375+tdjisdj@users.noreply.github.com> Date: Thu, 22 Jun 2023 14:31:14 +0800 Subject: [PATCH] sub: Add ws early data infomation support VMess, trojan and VLESS. --- sub/GroupUpdater.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sub/GroupUpdater.cpp b/sub/GroupUpdater.cpp index d056b7c..894e6f1 100644 --- a/sub/GroupUpdater.cpp +++ b/sub/GroupUpdater.cpp @@ -296,6 +296,8 @@ namespace NekoGui_sub { } } bean->stream->path = Node2QString(ws["path"]); + bean->stream->ws_early_data_length = Node2Int(ws["max-early-data"]); + bean->stream->ws_early_data_name = Node2QString(ws["early-data-header-name"]); } auto grpc = NodeChild(proxy, {"grpc-opts", "grpc-opt"}); @@ -329,6 +331,8 @@ namespace NekoGui_sub { } } bean->stream->path = Node2QString(ws["path"]); + bean->stream->ws_early_data_length = Node2Int(ws["max-early-data"]); + bean->stream->ws_early_data_name = Node2QString(ws["early-data-header-name"]); } auto grpc = NodeChild(proxy, {"grpc-opts", "grpc-opt"});