mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
fix grpc transport
This commit is contained in:
parent
24b8b47c43
commit
ba7f013d79
@ -130,7 +130,10 @@ namespace Configs {
|
||||
QJsonObject object;
|
||||
if (type.isEmpty() || type == "tcp") return object;
|
||||
if (!type.isEmpty()) object["type"] = type;
|
||||
if (!path.isEmpty()) object["path"] = path;
|
||||
if (!path.isEmpty()) {
|
||||
if (type == "grpc") object["service_name"] = path;
|
||||
else object["path"] = path;
|
||||
}
|
||||
if (!method.isEmpty()) object["method"] = method;
|
||||
if (!headers.isEmpty()) {
|
||||
object["headers"] = qStringListToJsonObject(headers);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user