mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 18:24:58 +00:00
Fix some rules not working in sing-box configs
This commit is contained in:
1 file changed
+2
-2
@@ -462,12 +462,12 @@ static rapidjson::Value transformRuleToSingBox(const std::string& rule, const st
|
||||
auto args = split(rule, ",");
|
||||
if (args.size() < 2) return rapidjson::Value(rapidjson::kObjectType);
|
||||
auto type = toLower(std::string(args[0]));
|
||||
auto value = args[1];
|
||||
auto value = toLower(args[1]);
|
||||
// std::string_view option;
|
||||
// if (args.size() >= 3) option = args[2];
|
||||
|
||||
rapidjson::Value rule_obj(rapidjson::kObjectType);
|
||||
type = replaceAllDistinct(toLower(type), "-", "_");
|
||||
type = replaceAllDistinct(type, "-", "_");
|
||||
type = replaceAllDistinct(type, "ip_cidr6", "ip_cidr");
|
||||
if (type == "match" || type == "final")
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user