mirror of
https://github.com/2dust/v2rayN.git
synced 2025-11-05 06:52:52 +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"))
|
.Select(s => s.Replace("\r\n", "\n"))
|
||||||
.ToList() ?? new();
|
.ToList() ?? new();
|
||||||
tls.certificate = certs.Count > 0 ? certs : null;
|
tls.certificate = certs.Count > 0 ? certs : null;
|
||||||
|
tls.insecure = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -298,6 +298,7 @@ public partial class CoreConfigV2rayService
|
||||||
}
|
}
|
||||||
tlsSettings.certificates = certsettings;
|
tlsSettings.certificates = certsettings;
|
||||||
tlsSettings.disableSystemRoot = true;
|
tlsSettings.disableSystemRoot = true;
|
||||||
|
tlsSettings.allowInsecure = false;
|
||||||
}
|
}
|
||||||
streamSettings.tlsSettings = tlsSettings;
|
streamSettings.tlsSettings = tlsSettings;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue