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