mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-01 09:14:15 +00:00
fix: pass TOML proxy group extra string values without quotes
toml::format() serializes string values with surrounding quotes, so
`extra = { url = "http://..." }` produced `url: '"http://..."'` in the
Clash output. Use the raw string for string values and keep
toml::format() for other types.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
32d7b7be4a
commit
a1ad960f65
1 file changed
+1
-1
@@ -88,7 +88,7 @@ namespace toml
|
||||
{
|
||||
const auto& extra_table = toml::find<toml::table>(v, "extra");
|
||||
for(const auto& [k, val] : extra_table)
|
||||
conf.Extras[k] = toml::format(val);
|
||||
conf.Extras[k] = val.is_string() ? val.as_string() : toml::format(val);
|
||||
}
|
||||
return conf;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user