Fix not properly handle ruleset types

This commit is contained in:
Tindy X committed 2021-09-20 17:38:14 +08:00
1 parent c35714ba48
commit 7a2838712c
1 file changed
+1 -1
+1 -1
View File
@@ -112,7 +112,7 @@ namespace toml
case "clash-domain"_hash:
case "clash-ipcidr"_hash:
case "clash-classic"_hash:
conf.Url = type;
conf.Url = type + ":";
break;
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());