From f8999192ab5232e59ee20bd9dedcf99561040efa Mon Sep 17 00:00:00 2001 From: xchacha20-poly1305 <139959885+xchacha20-poly1305@users.noreply.github.com> Date: Sat, 16 Sep 2023 19:40:38 +0900 Subject: [PATCH] chore(sub): remove unused value --- sub/GroupUpdater.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sub/GroupUpdater.cpp b/sub/GroupUpdater.cpp index ccea049..5955b82 100644 --- a/sub/GroupUpdater.cpp +++ b/sub/GroupUpdater.cpp @@ -377,6 +377,10 @@ 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"]); + // for Xray + if (Node2QString(ws["early-data-header-name"]) == "Sec-WebSocket-Protocol") { + bean->stream->path += "?ed=" + Node2QString(ws["max-early-data"]); + } } auto grpc = NodeChild(proxy, {"grpc-opts", "grpc-opt"});