From 495412457d0fdabb00be29cfa9e02453a474c0a7 Mon Sep 17 00:00:00 2001 From: vayulqq Date: Sun, 23 Nov 2025 17:49:28 +0300 Subject: [PATCH] Update Link2Bean.cpp --- src/configs/proxy/Link2Bean.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/configs/proxy/Link2Bean.cpp b/src/configs/proxy/Link2Bean.cpp index dbe1f02..3a598fb 100644 --- a/src/configs/proxy/Link2Bean.cpp +++ b/src/configs/proxy/Link2Bean.cpp @@ -132,6 +132,8 @@ namespace Configs { stream->host = GetQueryValue(query, "host", ""); } else if (stream->network == "grpc") { stream->path = GetQueryValue(query, "serviceName", ""); + stream->header_type = ""; + stream->host = ""; } else if (stream->network == "tcp") { if (GetQueryValue(query, "headerType") == "http") { stream->header_type = "http"; @@ -288,6 +290,8 @@ namespace Configs { stream->host = GetQueryValue(query, "host", ""); } else if (stream->network == "grpc") { stream->path = GetQueryValue(query, "serviceName", ""); + stream->header_type = ""; + stream->host = ""; } else if (stream->network == "tcp") { if (GetQueryValue(query, "headerType") == "http") { stream->header_type = "http"; @@ -491,4 +495,4 @@ namespace Configs { } -} // namespace Configs \ No newline at end of file +} // namespace Configs