mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 17:52:19 +00:00
Add TCP Fast Open option to Clash configs
This commit is contained in:
1 file changed
+4
-2
@@ -271,9 +271,9 @@ void proxyToClash(std::vector<Proxy> &nodes, YAML::Node &yamlnode, const ProxyGr
|
|||||||
|
|
||||||
processRemark(x.Remark, remarks_list, false);
|
processRemark(x.Remark, remarks_list, false);
|
||||||
|
|
||||||
tribool udp = ext.udp;
|
tribool udp = ext.udp, tfo = ext.tfo, scv = ext.skip_cert_verify;
|
||||||
tribool scv = ext.skip_cert_verify;
|
|
||||||
udp.define(x.UDP);
|
udp.define(x.UDP);
|
||||||
|
tfo.define(x.TCPFastOpen);
|
||||||
scv.define(x.AllowInsecure);
|
scv.define(x.AllowInsecure);
|
||||||
|
|
||||||
singleproxy["name"] = x.Remark;
|
singleproxy["name"] = x.Remark;
|
||||||
@@ -561,6 +561,8 @@ void proxyToClash(std::vector<Proxy> &nodes, YAML::Node &yamlnode, const ProxyGr
|
|||||||
// sees in https://dreamacro.github.io/clash/configuration/outbound.html#snell
|
// sees in https://dreamacro.github.io/clash/configuration/outbound.html#snell
|
||||||
if(udp && x.Type != ProxyType::Snell)
|
if(udp && x.Type != ProxyType::Snell)
|
||||||
singleproxy["udp"] = true;
|
singleproxy["udp"] = true;
|
||||||
|
if(!tfo.is_undef())
|
||||||
|
singleproxy["tfo"] = tfo.get();
|
||||||
if(proxy_block)
|
if(proxy_block)
|
||||||
singleproxy.SetStyle(YAML::EmitterStyle::Block);
|
singleproxy.SetStyle(YAML::EmitterStyle::Block);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user