From 4b4dbb5377a48c3e7bb4f3638da17d926cf60bdf Mon Sep 17 00:00:00 2001 From: Ariesly Date: Fri, 8 Dec 2023 01:30:09 +0000 Subject: [PATCH] fix(hysteria2): Change to TLS Fingerprint --- backend/src/core/proxy-utils/producers/uri.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/core/proxy-utils/producers/uri.js b/backend/src/core/proxy-utils/producers/uri.js index ed94d2b..465861d 100644 --- a/backend/src/core/proxy-utils/producers/uri.js +++ b/backend/src/core/proxy-utils/producers/uri.js @@ -244,9 +244,9 @@ export default function URI_Producer() { `sni=${encodeURIComponent(proxy.sni)}`, ); } - if (proxy.fingerprint) { + if (proxy['tls-fingerprint']) { hysteria2params.push( - `pinSHA256=${encodeURIComponent(proxy.fingerprint)}`, + `pinSHA256=${encodeURIComponent(proxy['tls-fingerprint'])}`, ); } result = `hysteria2://${proxy.password}@${proxy.server}:${