fix(hysteria): use pinSHA256 for pinned cert and emit ech in share links

Hysteria links now carry the pinned peer cert under the hysteria2-standard pinSHA256 key instead of pcs (frontend genHysteriaLink + outbound importer round-trip), and the Go subscription generator emits ech from echConfigList. Also drops the dead allowInsecure guard in genHysteriaLink, which read a field that does not exist on TlsClientSettings.
This commit is contained in:
MHSanaei
2026-06-01 22:02:37 +02:00
parent 7f8c79675f
commit 588ea86298
3 changed files with 7 additions and 4 deletions
@@ -417,7 +417,7 @@ export function parseHysteria2Link(link: string): Raw | null {
fingerprint: params.get('fp') ?? '',
echConfigList: params.get('ech') ?? '',
verifyPeerCertByName: '',
pinnedPeerCertSha256: params.get('pcs') ?? '',
pinnedPeerCertSha256: params.get('pinSHA256') ?? '',
},
};
applyFinalMaskParam(stream, params);