mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 05:03:02 +00:00
Fix cert separator
This commit is contained in:
parent
7b31bcdd9f
commit
ea0141d1c1
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];
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ public class AddServerViewModel : MyReactiveObject
|
|||
return;
|
||||
}
|
||||
|
||||
List<string> shaList = new();
|
||||
List<string> shaList = [];
|
||||
foreach (var cert in certList)
|
||||
{
|
||||
var sha = CertPemManager.GetCertSha256Thumbprint(cert);
|
||||
|
|
@ -228,7 +228,7 @@ public class AddServerViewModel : MyReactiveObject
|
|||
}
|
||||
shaList.Add(sha);
|
||||
}
|
||||
CertSha = string.Join('~', shaList);
|
||||
CertSha = string.Join(',', shaList);
|
||||
}
|
||||
|
||||
private async Task FetchCert()
|
||||
|
|
|
|||
Loading…
Reference in a new issue