mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54: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(";");
|
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"];
|
auto protocol_n = proxy["protocol"];
|
||||||
if (protocol_n.IsDefined()) {
|
if (protocol_n.IsDefined()) {
|
||||||
continue; // SSR
|
continue; // SSR
|
||||||
@@ -301,6 +306,10 @@ namespace NekoGui_sub {
|
|||||||
bean->stream->allow_insecure = Node2Bool(proxy["skip-cert-verify"]);
|
bean->stream->allow_insecure = Node2Bool(proxy["skip-cert-verify"]);
|
||||||
bean->stream->utlsFingerprint = Node2QString(proxy["client-fingerprint"]);
|
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
|
// opts
|
||||||
auto ws = NodeChild(proxy, {"ws-opts", "ws-opt"});
|
auto ws = NodeChild(proxy, {"ws-opts", "ws-opt"});
|
||||||
if (ws.IsMap()) {
|
if (ws.IsMap()) {
|
||||||
@@ -337,6 +346,10 @@ namespace NekoGui_sub {
|
|||||||
if (Node2Bool(proxy["tls"])) bean->stream->security = "tls";
|
if (Node2Bool(proxy["tls"])) bean->stream->security = "tls";
|
||||||
if (Node2Bool(proxy["skip-cert-verify"])) bean->stream->allow_insecure = true;
|
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
|
// meta packet encoding
|
||||||
if (Node2Bool(proxy["xudp"])) bean->stream->packet_encoding = "xudp";
|
if (Node2Bool(proxy["xudp"])) bean->stream->packet_encoding = "xudp";
|
||||||
if (Node2Bool(proxy["packet-addr"])) bean->stream->packet_encoding = "packetaddr";
|
if (Node2Bool(proxy["packet-addr"])) bean->stream->packet_encoding = "packetaddr";
|
||||||
|
|||||||
Reference in New Issue
Block a user