mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
fix no path for tcp with http header (#875)
This commit is contained in:
@@ -57,6 +57,7 @@ namespace NekoGui_fmt {
|
|||||||
if (!stream->path.isEmpty()) query.addQueryItem("serviceName", stream->path);
|
if (!stream->path.isEmpty()) query.addQueryItem("serviceName", stream->path);
|
||||||
} else if (stream->network == "tcp") {
|
} else if (stream->network == "tcp") {
|
||||||
if (stream->header_type == "http") {
|
if (stream->header_type == "http") {
|
||||||
|
if (!stream->path.isEmpty()) query.addQueryItem("path", stream->path);
|
||||||
query.addQueryItem("headerType", "http");
|
query.addQueryItem("headerType", "http");
|
||||||
query.addQueryItem("host", stream->host);
|
query.addQueryItem("host", stream->host);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ namespace NekoGui_fmt {
|
|||||||
if (GetQueryValue(query, "headerType") == "http") {
|
if (GetQueryValue(query, "headerType") == "http") {
|
||||||
stream->header_type = "http";
|
stream->header_type = "http";
|
||||||
stream->host = GetQueryValue(query, "host", "");
|
stream->host = GetQueryValue(query, "host", "");
|
||||||
|
stream->path = GetQueryValue(query, "path", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,6 +197,7 @@ namespace NekoGui_fmt {
|
|||||||
} else if (stream->network == "tcp") {
|
} else if (stream->network == "tcp") {
|
||||||
if (GetQueryValue(query, "headerType") == "http") {
|
if (GetQueryValue(query, "headerType") == "http") {
|
||||||
stream->header_type = "http";
|
stream->header_type = "http";
|
||||||
|
stream->path = GetQueryValue(query, "path", "");
|
||||||
stream->host = GetQueryValue(query, "host", "");
|
stream->host = GetQueryValue(query, "host", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user