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