From 7a2838712cb6acf92cc408d63d5cdaed3c2c7b16 Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Mon, 20 Sep 2021 17:38:14 +0800 Subject: [PATCH] Fix not properly handle ruleset types --- src/config/binding.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/binding.h b/src/config/binding.h index 818b609..ad7b769 100644 --- a/src/config/binding.h +++ b/src/config/binding.h @@ -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());