mirror of
https://github.com/2dust/v2rayN.git
synced 2025-11-04 22:42:51 +00:00
Disallow insecure when pinned cert (#8239)
This commit is contained in:
parent
8b1105c7e2
commit
ed2c77062e
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