mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +03:00
gui: VLESS Flow
This commit is contained in:
@@ -55,6 +55,7 @@ namespace NekoRay::fmt {
|
||||
password = url.userName();
|
||||
if (serverPort == -1) serverPort = 443;
|
||||
|
||||
// security
|
||||
stream->network = GetQueryValue(query, "type", "tcp");
|
||||
stream->security = GetQueryValue(query, "security", "tls").replace("reality", "tls");
|
||||
auto sni1 = GetQueryValue(query, "sni");
|
||||
@@ -64,7 +65,9 @@ namespace NekoRay::fmt {
|
||||
if (!query.queryItemValue("allowInsecure").isEmpty()) stream->allow_insecure = true;
|
||||
stream->reality_pbk = GetQueryValue(query, "pbk", "");
|
||||
stream->reality_sid = GetQueryValue(query, "sid", "");
|
||||
if (IS_NEKO_BOX) stream->utlsFingerprint = GetQueryValue(query, "fp", "");
|
||||
|
||||
// type
|
||||
if (stream->network == "ws") {
|
||||
stream->path = GetQueryValue(query, "path", "");
|
||||
stream->host = GetQueryValue(query, "host", "");
|
||||
@@ -80,6 +83,11 @@ namespace NekoRay::fmt {
|
||||
}
|
||||
}
|
||||
|
||||
// protocol
|
||||
if (proxy_type == proxy_VLESS) {
|
||||
flow = GetQueryValue(query, "flow", "");
|
||||
}
|
||||
|
||||
return !password.isEmpty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user