mirror of
https://github.com/2dust/v2rayN.git
synced 2025-12-01 12:13:01 +00:00
Disallow insecure when pinned cert
This commit is contained in:
parent
11c203ad19
commit
f70a3d4d44
2 changed files with 2 additions and 0 deletions
|
|
@ -269,6 +269,7 @@ public partial class CoreConfigSingboxService
|
|||
.Select(s => s.Replace("\r\n", "\n"))
|
||||
.ToList() ?? new();
|
||||
tls.certificate = certs.Count > 0 ? certs : null;
|
||||
tls.insecure = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -298,6 +298,7 @@ public partial class CoreConfigV2rayService
|
|||
}
|
||||
tlsSettings.certificates = certsettings;
|
||||
tlsSettings.disableSystemRoot = true;
|
||||
tlsSettings.allowInsecure = false;
|
||||
}
|
||||
streamSettings.tlsSettings = tlsSettings;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue