fix(hysteria2): Change to TLS Fingerprint

This commit is contained in:
Ariesly 2023-12-08 01:30:09 +00:00
parent b7b734f529
commit fe937d6ebf

View File

@ -244,9 +244,9 @@ export default function URI_Producer() {
`sni=${encodeURIComponent(proxy.sni)}`, `sni=${encodeURIComponent(proxy.sni)}`,
); );
} }
if (proxy.fingerprint) { if (proxy['tls-fingerprint']) {
hysteria2params.push( hysteria2params.push(
`pinSHA256=${encodeURIComponent(proxy.fingerprint)}`, `pinSHA256=${encodeURIComponent(proxy['tls-fingerprint'])}`,
); );
} }
result = `hysteria2://${proxy.password}@${proxy.server}:${ result = `hysteria2://${proxy.password}@${proxy.server}:${