chore(hysteria2): Uri support with tfo

This commit is contained in:
Ariesly 2023-12-08 01:34:53 +00:00
parent fe937d6ebf
commit e7dfa1ce38

View File

@ -249,6 +249,9 @@ export default function URI_Producer() {
`pinSHA256=${encodeURIComponent(proxy['tls-fingerprint'])}`,
);
}
if (proxy.tfo) {
hysteria2params.push(`fastopen=1`);
}
result = `hysteria2://${proxy.password}@${proxy.server}:${
proxy.port
}?${hysteria2params.join('&')}#${encodeURIComponent(