mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-01 17:25:02 +00:00
Fix incorrect group type conversion for Quantumult (X)
This commit is contained in:
1 file changed
+12
@@ -1533,8 +1533,16 @@ void netchToQuan(std::vector<nodeInfo> &nodes, INIReader &ini, std::vector<rules
|
|||||||
break;
|
break;
|
||||||
case "fallback"_hash:
|
case "fallback"_hash:
|
||||||
type = "static";
|
type = "static";
|
||||||
|
if(vArray.size() < 5)
|
||||||
|
continue;
|
||||||
|
rules_upper_bound -= 2;
|
||||||
|
break;
|
||||||
case "url-test"_hash:
|
case "url-test"_hash:
|
||||||
type = "auto";
|
type = "auto";
|
||||||
|
if(vArray.size() < 5)
|
||||||
|
continue;
|
||||||
|
rules_upper_bound -= 2;
|
||||||
|
break;
|
||||||
case "load-balance"_hash:
|
case "load-balance"_hash:
|
||||||
type = "balance, round-robin";
|
type = "balance, round-robin";
|
||||||
if(vArray.size() < 5)
|
if(vArray.size() < 5)
|
||||||
@@ -1728,6 +1736,10 @@ void netchToQuanX(std::vector<nodeInfo> &nodes, INIReader &ini, std::vector<rule
|
|||||||
case "url-test"_hash:
|
case "url-test"_hash:
|
||||||
case "fallback"_hash:
|
case "fallback"_hash:
|
||||||
type = "available";
|
type = "available";
|
||||||
|
if(rules_upper_bound < 5)
|
||||||
|
continue;
|
||||||
|
rules_upper_bound -= 2;
|
||||||
|
break;
|
||||||
case "load-balance"_hash:
|
case "load-balance"_hash:
|
||||||
type = "round-robin";
|
type = "round-robin";
|
||||||
if(rules_upper_bound < 5)
|
if(rules_upper_bound < 5)
|
||||||
|
|||||||
Reference in new issue
Block a user