mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 01:33:04 +00:00
Tweak filter_deprecated_nodes option
This commit is contained in:
1 file changed
+11
-8
+11
-8
@@ -581,16 +581,19 @@ void netchToClash(std::vector<nodeInfo> &nodes, YAML::Node &yamlnode, string_arr
|
|||||||
}
|
}
|
||||||
else if(x.linkType == SPEEDTEST_MESSAGE_FOUNDSSR && clashR)
|
else if(x.linkType == SPEEDTEST_MESSAGE_FOUNDSSR && clashR)
|
||||||
{
|
{
|
||||||
//latest clash core removed support for chacha20 encryption
|
//ignoring all nodes with unsupported obfs, protocols and encryption
|
||||||
if(ext.filter_deprecated && method == "chacha20")
|
|
||||||
continue;
|
|
||||||
//ignoring all nodes with unsupported obfs and protocols
|
|
||||||
protocol = GetMember(json, "Protocol");
|
protocol = GetMember(json, "Protocol");
|
||||||
if(std::find(clashr_protocols.cbegin(), clashr_protocols.cend(), protocol) == clashr_protocols.cend())
|
|
||||||
continue;
|
|
||||||
obfs = GetMember(json, "OBFS");
|
obfs = GetMember(json, "OBFS");
|
||||||
if(std::find(clashr_obfs.cbegin(), clashr_obfs.cend(), obfs) == clashr_obfs.cend())
|
if(ext.filter_deprecated)
|
||||||
continue;
|
{
|
||||||
|
if(method == "chacha20")
|
||||||
|
continue;
|
||||||
|
if(std::find(clashr_protocols.cbegin(), clashr_protocols.cend(), protocol) == clashr_protocols.cend())
|
||||||
|
continue;
|
||||||
|
if(std::find(clashr_obfs.cbegin(), clashr_obfs.cend(), obfs) == clashr_obfs.cend())
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
protoparam = GetMember(json, "ProtocolParam");
|
protoparam = GetMember(json, "ProtocolParam");
|
||||||
obfsparam = GetMember(json, "OBFSParam");
|
obfsparam = GetMember(json, "OBFSParam");
|
||||||
singleproxy["type"] = "ssr";
|
singleproxy["type"] = "ssr";
|
||||||
|
|||||||
Reference in new issue
Block a user