Fix cert separator (#8837)

This commit is contained in:
DHR60
2026-02-25 11:30:29 +00:00
committed by GitHub
parent ac43bb051d
commit 3a5293bf87
2 changed files with 3 additions and 3 deletions
@@ -66,7 +66,7 @@ public class Hysteria2Fmt : BaseFmt
if (!item.CertSha.IsNullOrEmpty())
{
var sha = item.CertSha;
var idx = sha.IndexOf('~');
var idx = sha.IndexOf(',');
if (idx > 0)
{
sha = sha[..idx];