Update Link2Bean.cpp

This commit is contained in:
vayulqq 2025-11-23 17:49:28 +03:00 committed by GitHub
parent 00155b1c9d
commit 495412457d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";