mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
Update Link2Bean.cpp
This commit is contained in:
parent
00155b1c9d
commit
495412457d
@ -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
|
||||
} // namespace Configs
|
||||
|
||||
Loading…
Reference in New Issue
Block a user