mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-01 09:14:15 +00:00
Merge pull request #95 from zhangsmallchi/master
fix(clash): quote VLESS Reality short-id in YAML output
This commit is contained in:
1 file changed
+3
-3
@@ -890,7 +890,7 @@ std::string proxyToClash(std::vector<Proxy> &nodes, const std::string &base_conf
|
||||
proxyToClash(nodes, yamlnode, extra_proxy_group, clashR, ext);
|
||||
|
||||
if (ext.nodelist)
|
||||
return YAML::Dump(yamlnode);
|
||||
return formatterShortId(YAML::Dump(yamlnode));
|
||||
|
||||
/*
|
||||
if(ext.enable_rule_generator)
|
||||
@@ -899,7 +899,7 @@ std::string proxyToClash(std::vector<Proxy> &nodes, const std::string &base_conf
|
||||
return YAML::Dump(yamlnode);
|
||||
*/
|
||||
if (!ext.enable_rule_generator)
|
||||
return YAML::Dump(yamlnode);
|
||||
return formatterShortId(YAML::Dump(yamlnode));
|
||||
|
||||
if (!ext.managed_config_prefix.empty() || ext.clash_script) {
|
||||
if (yamlnode["mode"].IsDefined()) {
|
||||
@@ -911,7 +911,7 @@ std::string proxyToClash(std::vector<Proxy> &nodes, const std::string &base_conf
|
||||
|
||||
renderClashScript(yamlnode, ruleset_content_array, ext.managed_config_prefix, ext.clash_script,
|
||||
ext.overwrite_original_rules, ext.clash_classical_ruleset);
|
||||
return YAML::Dump(yamlnode);
|
||||
return formatterShortId(YAML::Dump(yamlnode));
|
||||
}
|
||||
|
||||
std::string output_content = rulesetToClashStr(yamlnode, ruleset_content_array, ext.overwrite_original_rules,
|
||||
|
||||
Reference in new issue
Block a user