mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-08 12:11:05 +00:00
Security Protocol Changes
- updated the security protocols to use TLS12 and TLS13.
This commit is contained in:
parent
3731ad6655
commit
e017c679b9
9 changed files with 78 additions and 9 deletions
15
src/ServerManager.Updater/Utils/SecurityUtils.cs
Normal file
15
src/ServerManager.Updater/Utils/SecurityUtils.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace ServerManagerTool.Updater
|
||||
{
|
||||
public static class SecurityUtils
|
||||
{
|
||||
public static SecurityProtocolType GetSecurityProtocol(int securityProtocolValue)
|
||||
{
|
||||
if (Enum.TryParse(securityProtocolValue.ToString(), out SecurityProtocolType securityProtocol))
|
||||
return securityProtocol;
|
||||
return SecurityProtocolType.Tls12;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue