Support setting output style for proxy groups in Clash configs (#734)

This commit is contained in:
Tindy X committed 2024-04-03 18:07:12 +08:00
1 parent cb15d568c0
commit 4864a6b13c
8 files changed
+36 -9

No files matched your search

+2
View File
@@ -415,6 +415,7 @@ std::string subconverter(RESPONSE_CALLBACK_ARGS)
argExpandRulesets.define(true);
ext.clash_proxies_style = global.clashProxiesStyle;
ext.clash_proxy_groups_style = global.clashProxyGroupsStyle;
/// read preference from argument, assign global var if not in argument
ext.tfo.define(argTFO).define(global.TFOFlag);
@@ -1073,6 +1074,7 @@ std::string surgeConfToClash(RESPONSE_CALLBACK_ARGS)
ext.skip_cert_verify = global.skipCertVerify;
ext.tls13 = global.TLS13Flag;
ext.clash_proxies_style = global.clashProxiesStyle;
ext.clash_proxy_groups_style = global.clashProxyGroupsStyle;
ProxyGroupConfigs dummy_groups;
proxyToClash(nodes, clash, dummy_groups, false, ext);