mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Fix not properly handle ruleset types
This commit is contained in:
1 file changed
+1
-1
@@ -112,7 +112,7 @@ namespace toml
|
|||||||
case "clash-domain"_hash:
|
case "clash-domain"_hash:
|
||||||
case "clash-ipcidr"_hash:
|
case "clash-ipcidr"_hash:
|
||||||
case "clash-classic"_hash:
|
case "clash-classic"_hash:
|
||||||
conf.Url = type;
|
conf.Url = type + ":";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw toml::syntax_error("Ruleset has incorrect type, should be one of following:\n surge-ruleset, quantumultx, clash-domain, clash-ipcidr, clash-classic", v.at("type").location());
|
throw toml::syntax_error("Ruleset has incorrect type, should be one of following:\n surge-ruleset, quantumultx, clash-domain, clash-ipcidr, clash-classic", v.at("type").location());
|
||||||
|
|||||||
Reference in new issue
Block a user