mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
Add mux for shadowsocks (#572)
This commit is contained in:
@@ -603,7 +603,7 @@ namespace NekoRay {
|
|||||||
status->result->outboundStats += ent->traffic_data;
|
status->result->outboundStats += ent->traffic_data;
|
||||||
|
|
||||||
// mux common
|
// mux common
|
||||||
auto needMux = ent->type == "vmess" || ent->type == "trojan" || ent->type == "vless";
|
auto needMux = ent->type == "vmess" || ent->type == "trojan" || ent->type == "vless" || ent->type == "shadowsocks";
|
||||||
needMux &= !dataStore->mux_protocol.isEmpty() && dataStore->mux_concurrency > 0;
|
needMux &= !dataStore->mux_protocol.isEmpty() && dataStore->mux_concurrency > 0;
|
||||||
|
|
||||||
if (stream != nullptr) {
|
if (stream != nullptr) {
|
||||||
@@ -618,6 +618,12 @@ namespace NekoRay {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ent->type == "shadowsocks") {
|
||||||
|
if (!IS_NEKO_BOX || outbound["udp_over_tcp"] == true || !outbound["plugin"].isNull()) {
|
||||||
|
needMux = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// common
|
// common
|
||||||
if (IS_NEKO_BOX) {
|
if (IS_NEKO_BOX) {
|
||||||
// apply domain_strategy
|
// apply domain_strategy
|
||||||
|
|||||||
Reference in New Issue
Block a user