mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-16 09:24:59 +03:00
Fix (#9987)
This commit is contained in:
@@ -166,7 +166,10 @@ public class Hysteria2Fmt : BaseFmt
|
|||||||
}
|
}
|
||||||
if (item.CertSha.IsNullOrEmpty())
|
if (item.CertSha.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
item.CertSha = GetQueryDecoded(query, "pinSHA256");
|
var pinSHA256 = GetQueryDecoded(query, "pinSHA256");
|
||||||
|
item.CertSha = pinSHA256;
|
||||||
|
if (!pinSHA256.IsNullOrEmpty())
|
||||||
|
{
|
||||||
// NOTE:
|
// NOTE:
|
||||||
// To accommodate Xray changes,
|
// To accommodate Xray changes,
|
||||||
// some providers issue self-signed cert links with `insecure = false` and a certificate fingerprint,
|
// some providers issue self-signed cert links with `insecure = false` and a certificate fingerprint,
|
||||||
@@ -176,6 +179,7 @@ public class Hysteria2Fmt : BaseFmt
|
|||||||
// and the value is restored when generating configurations.
|
// and the value is restored when generating configurations.
|
||||||
item.AllowInsecure = Global.StringTrue;
|
item.AllowInsecure = Global.StringTrue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
item.EchConfigList = GetQueryDecoded(query, "ech");
|
item.EchConfigList = GetQueryDecoded(query, "ech");
|
||||||
item.SetProtocolExtra(item.GetProtocolExtra() with
|
item.SetProtocolExtra(item.GetProtocolExtra() with
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user