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"});