mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
feat(sub): get sing-mux from yaml
This commit is contained in:
committed by
arm64v8a
parent
f1a1b5e352
commit
d4e16ebdd1
@@ -268,6 +268,11 @@ namespace NekoGui_sub {
|
||||
}
|
||||
bean->plugin = ssPlugin.join(";");
|
||||
}
|
||||
|
||||
// sing-mux
|
||||
auto smux = NodeChild(proxy, {"smux"});
|
||||
if (Node2Bool(smux["enabled"]) == true) bean->stream->multiplex_status = 1;
|
||||
|
||||
auto protocol_n = proxy["protocol"];
|
||||
if (protocol_n.IsDefined()) {
|
||||
continue; // SSR
|
||||
@@ -301,6 +306,10 @@ namespace NekoGui_sub {
|
||||
bean->stream->allow_insecure = Node2Bool(proxy["skip-cert-verify"]);
|
||||
bean->stream->utlsFingerprint = Node2QString(proxy["client-fingerprint"]);
|
||||
|
||||
// sing-mux
|
||||
auto smux = NodeChild(proxy, {"smux"});
|
||||
if (Node2Bool(smux["enabled"]) == true) bean->stream->multiplex_status = 1;
|
||||
|
||||
// opts
|
||||
auto ws = NodeChild(proxy, {"ws-opts", "ws-opt"});
|
||||
if (ws.IsMap()) {
|
||||
@@ -337,6 +346,10 @@ namespace NekoGui_sub {
|
||||
if (Node2Bool(proxy["tls"])) bean->stream->security = "tls";
|
||||
if (Node2Bool(proxy["skip-cert-verify"])) bean->stream->allow_insecure = true;
|
||||
|
||||
// sing-mux
|
||||
auto smux = NodeChild(proxy, {"smux"});
|
||||
if (Node2Bool(smux["enabled"]) == true) bean->stream->multiplex_status = 1;
|
||||
|
||||
// meta packet encoding
|
||||
if (Node2Bool(proxy["xudp"])) bean->stream->packet_encoding = "xudp";
|
||||
if (Node2Bool(proxy["packet-addr"])) bean->stream->packet_encoding = "packetaddr";
|
||||
|
||||
Reference in New Issue
Block a user