mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-19 14:40:09 +08:00
parent
c6caf42ce9
commit
937523c6b3
@ -54,7 +54,13 @@ namespace NekoGui_fmt {
|
|||||||
if (serverPort == -1) serverPort = 443;
|
if (serverPort == -1) serverPort = 443;
|
||||||
|
|
||||||
// security
|
// security
|
||||||
stream->network = GetQueryValue(query, "type", "tcp");
|
|
||||||
|
auto type = GetQueryValue(query, "type", "tcp");
|
||||||
|
if (type == "h2") {
|
||||||
|
type = "http";
|
||||||
|
}
|
||||||
|
stream->network = type;
|
||||||
|
|
||||||
if (proxy_type == proxy_Trojan) {
|
if (proxy_type == proxy_Trojan) {
|
||||||
stream->security = GetQueryValue(query, "security", "tls").replace("reality", "tls").replace("none", "");
|
stream->security = GetQueryValue(query, "security", "tls").replace("reality", "tls").replace("none", "");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user